File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 6
6
paths-ignore :
7
7
- ' **/README.md'
8
8
- ' libnode/**'
9
- - ' nodejs-embedded/**'
10
9
pull_request :
11
10
branches : [ master ]
12
11
paths-ignore :
13
12
- ' **/README.md'
14
13
- ' libnode/**'
15
- - ' nodejs-embedded/**'
16
14
env :
17
15
CARGO_TERM_COLOR : always
18
16
Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ unsafe extern "C" fn node_start(napi_reg_func: *mut c_void) -> i32 {
26
26
27
27
pub unsafe fn main ( ) -> i32 {
28
28
let exec_dir = std:: env:: current_exe ( ) . unwrap ( ) . parent ( ) . unwrap ( ) . to_path_buf ( ) ;
29
- let res_path = if cfg ! ( target_os = "macos" ) {
30
- macos_res_path ( )
31
- } else {
32
- exec_dir . clone ( )
33
- } ;
29
+
30
+ # [ cfg ( target_os = "macos" ) ]
31
+ let res_path = macos_res_path ( ) ;
32
+ # [ cfg ( not ( target_os = "macos" ) ) ]
33
+ let res_path = exec_dir . clone ( ) ;
34
34
35
35
let embedder_path_file = res_path. join ( "nodejs_embedder" ) ;
36
36
let dylib_path = std:: fs:: read_to_string ( embedder_path_file) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments