File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ SHARED_LIBS_DISABLED_le32-unknown-nacl := 1
34
34
RUNTIME_CFLAGS_le32-unknown-nacl: = -I$(CFG_NACL_CROSS_PATH ) /include/pnacl
35
35
RUNTIME_DISABLE_ASM_le32-unknown-nacl := 1
36
36
RUSTC_FLAGS_le32-unknown-nacl: =
37
- RUSTC_CROSS_FLAGS_le32-unknown-nacl =-C cross-path=$(CFG_NACL_CROSS_PATH ) --cfg "target_libc=\"newlib\"" - L $(CFG_NACL_CROSS_PATH ) /lib/pnacl/Release -L $(CFG_PNACL_TOOLCHAIN ) /lib/clang/3.7.0/lib/le32-nacl -L $(CFG_PNACL_TOOLCHAIN ) /le32-nacl/usr/lib -L $(CFG_PNACL_TOOLCHAIN ) /le32-nacl/lib
37
+ RUSTC_CROSS_FLAGS_le32-unknown-nacl =-C cross-path=$(CFG_NACL_CROSS_PATH ) -L $(CFG_NACL_CROSS_PATH ) /lib/pnacl/Release -L $(CFG_PNACL_TOOLCHAIN ) /lib/clang/3.7.0/lib/le32-nacl -L $(CFG_PNACL_TOOLCHAIN ) /le32-nacl/usr/lib -L $(CFG_PNACL_TOOLCHAIN ) /le32-nacl/lib
38
38
CFG_GNU_TRIPLE_le32-unknown-nacl := le32-unknown-nacl
39
39
40
40
# strdup isn't defined unless -std=gnu++11 is used
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ pub fn target() -> Target {
40
40
target_endian : "little" . to_string ( ) ,
41
41
target_pointer_width : "32" . to_string ( ) ,
42
42
target_os : "nacl" . to_string ( ) ,
43
- target_env : "" . to_string ( ) ,
43
+ target_env : "newlib " . to_string ( ) ,
44
44
arch : "le32" . to_string ( ) ,
45
45
options : opts,
46
46
}
Original file line number Diff line number Diff line change @@ -462,11 +462,11 @@ pub fn rmdir(p: &Path) -> io::Result<()> {
462
462
}
463
463
464
464
pub fn readlink ( p : & Path ) -> io:: Result < PathBuf > {
465
- #[ cfg( not( target_libc = "newlib" ) ) ]
465
+ #[ cfg( not( target_env = "newlib" ) ) ]
466
466
unsafe fn pathconf ( p : * mut libc:: c_char ) -> i64 {
467
467
libc:: pathconf ( p, libc:: _PC_NAME_MAX) as i64
468
468
}
469
- #[ cfg( target_libc = "newlib" ) ]
469
+ #[ cfg( target_env = "newlib" ) ]
470
470
unsafe fn pathconf ( _: * mut libc:: c_char ) -> i64 {
471
471
libc:: sysconf ( libc:: _PC_NAME_MAX) as i64
472
472
}
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ pub fn errno() -> i32 {
60
60
extern { fn __errno_location ( ) -> * const c_int ; }
61
61
__errno_location ( )
62
62
}
63
- #[ cfg( target_libc = "newlib" ) ]
63
+ #[ cfg( target_env = "newlib" ) ]
64
64
fn errno_location ( ) -> * const c_int {
65
65
extern {
66
66
fn __errno ( ) -> * const c_int ;
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ impl Thread {
129
129
pthread_setname_np ( cname. as_ptr ( ) ) ;
130
130
}
131
131
}
132
- #[ cfg( target_libc = "newlib" ) ]
132
+ #[ cfg( target_env = "newlib" ) ]
133
133
pub unsafe fn set_name ( _name : & str ) {
134
134
// Newlib has no way to set a thread name.
135
135
}
You can’t perform that action at this time.
0 commit comments