We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f21b64 commit d7c37d0Copy full SHA for d7c37d0
1 file changed
src/toolchain.rs
@@ -54,11 +54,8 @@ pub fn prepare(args: &Args) -> Result<()> {
54
.context("Failed to create sysroot include directory")?;
55
56
const INCLUDE_DIRS: &[&str] = &[
57
- "third_party/printf/",
58
- "third_party/musl/include",
59
- "third_party/musl/arch/generic",
60
- "third_party/musl/arch/x86_64",
61
- "third_party/musl/src/internal",
+ "third_party/picolibc/newlib/libc/include",
+ "third_party/picolibc/newlib/libc/tinystdio",
62
];
63
64
for dir in INCLUDE_DIRS {
@@ -94,7 +91,7 @@ pub fn cflags(args: &Args) -> OsString {
94
91
"-fstack-clash-protection",
95
92
"-mstack-probe-size=4096",
96
93
"-mno-red-zone",
97
- "-nostdinc",
+ "-nostdlibinc",
98
// Define HYPERLIGHT as we use this to conditionally enable/disable code
99
// in the libc headers
100
"-DHYPERLIGHT=1",
0 commit comments