Skip to content

Commit f67a722

Browse files
committed
liballoc does not need liblibc under certain configurations
1 parent 2a8cb67 commit f67a722

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/liballoc/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969

7070
#[macro_use]
7171
extern crate core;
72+
73+
#[cfg(all(not(external_funcs), not(external_crate)))]
7274
extern crate libc;
7375

7476
// Allow testing this library

0 commit comments

Comments
 (0)