Skip to content

Commit 87cda5b

Browse files
committed
[bootstrap] Detect unwind libraries for wasm32-wali-linux-musl
1 parent bfeac6c commit 87cda5b

File tree

1 file changed

+1
-1
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+1
-1
lines changed

src/bootstrap/src/core/build_steps/llvm.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ impl Step for Libunwind {
13741374
if file.is_file() && file.extension() == Some(OsStr::new("o")) {
13751375
// file name starts with "Unwind-EHABI", "Unwind-seh" or "libunwind"
13761376
let file_name = file.file_name().unwrap().to_str().expect("UTF-8 file name");
1377-
if cpp_sources.iter().any(|f| file_name.starts_with(&f[..f.len() - 4])) {
1377+
if cpp_sources.iter().any(|f| file_name.contains(&f[..f.len() - 4])) {
13781378
cc_cfg.object(&file);
13791379
count += 1;
13801380
}

0 commit comments

Comments
 (0)