Skip to content

Commit d7c37d0

Browse files
committed
feat: adapt to picolibc
1 parent 8f21b64 commit d7c37d0

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/toolchain.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,8 @@ pub fn prepare(args: &Args) -> Result<()> {
5454
.context("Failed to create sysroot include directory")?;
5555

5656
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",
57+
"third_party/picolibc/newlib/libc/include",
58+
"third_party/picolibc/newlib/libc/tinystdio",
6259
];
6360

6461
for dir in INCLUDE_DIRS {
@@ -94,7 +91,7 @@ pub fn cflags(args: &Args) -> OsString {
9491
"-fstack-clash-protection",
9592
"-mstack-probe-size=4096",
9693
"-mno-red-zone",
97-
"-nostdinc",
94+
"-nostdlibinc",
9895
// Define HYPERLIGHT as we use this to conditionally enable/disable code
9996
// in the libc headers
10097
"-DHYPERLIGHT=1",

0 commit comments

Comments
 (0)