Skip to content

Commit 9dd3123

Browse files
authored
fix(xtask): update to work with new sysroot (#62)
I forgot to update the xtask code in <#60>, breaking it.
1 parent 4de7f24 commit 9dd3123

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

xtask/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,16 @@ fn main() -> Result<()> {
5454
force_esp_riscv_toolchain,
5555
}) = args.command
5656
{
57+
let clang_sysroot = sys_crate_root_path.join("gen").join("sysroot");
5758
let builder = builder::OpenThreadBuilder::new(
59+
// Always use clang here for convenience.
60+
true,
5861
sys_crate_root_path.clone(),
5962
Some(target.clone()),
6063
// Fake host, but we do need to pass something to CMake
6164
Some("x86_64-unknown-linux-gnu".into()),
6265
None,
63-
None,
66+
Some(clang_sysroot),
6467
None,
6568
force_esp_riscv_toolchain,
6669
);

0 commit comments

Comments
 (0)