File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,12 @@ import util::filesearch;
13
13
// to be exported
14
14
export get_rpath_flags, test;
15
15
16
- #[ cfg( target_os="linux" ) ]
17
- #[ cfg( target_os="macos" ) ]
18
16
fn get_rpath_flags ( sess : session:: session , out_filename : str ) -> [ str ] {
17
+ // No rpath on windows
18
+ if sess. get_targ_cfg ( ) . os == session:: os_win32 {
19
+ ret [ ] ;
20
+ }
21
+
19
22
log "preparing the RPATH!" ;
20
23
21
24
let cwd = os:: getcwd ( ) ;
@@ -31,11 +34,6 @@ fn get_rpath_flags(sess: session::session, out_filename: str) -> [str] {
31
34
rpaths_to_flags ( rpaths)
32
35
}
33
36
34
- #[ cfg( target_os="win32" ) ]
35
- fn get_rpath_flags ( _sess : session:: session , _out_filename : str ) -> [ str ] {
36
- [ ]
37
- }
38
-
39
37
fn get_sysroot_absolute_rt_lib ( sess : session:: session ) -> fs:: path {
40
38
let path = [ sess. filesearch ( ) . sysroot ( ) ]
41
39
+ filesearch:: relative_target_lib_path (
You can’t perform that action at this time.
0 commit comments