Skip to content

Commit

Permalink
Merge pull request #171 from serjflint/fix/zig/unsupported-exported_s…
Browse files Browse the repository at this point in the history
…ymbols_list

fix zig: unsupported exported_symbols_list
  • Loading branch information
messense committed Sep 10, 2023
2 parents fc2a082 + 83a4afc commit fcb5d8a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/zig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl Zig {
// https://github.com/rust-lang/rust/blob/f0bc76ac41a0a832c9ee621e31aaf1f515d3d6a5/compiler/rustc_target/src/spec/windows_gnu_base.rs#L23
// https://github.com/rust-lang/rust/blob/2fb0e8d162a021f8a795fb603f5d8c0017855160/compiler/rustc_target/src/spec/windows_gnu_base.rs#L22
// https://github.com/rust-lang/rust/blob/f0bc76ac41a0a832c9ee621e31aaf1f515d3d6a5/compiler/rustc_target/src/spec/i686_pc_windows_gnu.rs#L16
// zig doesn't support --disable-auto-image-base, --dynamicbase, and --large-address-aware
// zig doesn't support --disable-auto-image-base, --dynamicbase and --large-address-aware
return None;
}
} else if arg == "-Wl,--no-undefined-version" {
Expand Down Expand Up @@ -170,6 +170,13 @@ impl Zig {
}
}
}
if is_macos {
if arg.starts_with("-Wl,--exported_symbols_list,") {
// zig doesn't support --exported_symbols_list arg
// https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-exported_symbols_list
return None;
}
}
Some(arg.to_string())
};
let has_undefined_dynamic_lookup = |args: &[String]| {
Expand Down

0 comments on commit fcb5d8a

Please sign in to comment.