Skip to content

Commit b69422b

Browse files
committed
Merge branch 'master' into bare-linker-tests
2 parents 75e33d8 + 2f5f24c commit b69422b

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

Cargo.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cargo-auditable/src/rustc_wrapper.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ fn rustc_command_with_audit_data(rustc_path: &OsStr) -> Option<Command> {
128128
// Prevent the symbol from being removed as unused by the linker
129129
if is_apple(&target_info) {
130130
if args.bare_linker() {
131-
command.arg("-Clink-arg=-u,_AUDITABLE_VERSION_INFO");
131+
command.arg("-Clink-arg=-u");
132+
command.arg("-Clink-arg=_AUDITABLE_VERSION_INFO");
132133
} else {
133134
command.arg("-Clink-arg=-Wl,-u,_AUDITABLE_VERSION_INFO");
134135
}

0 commit comments

Comments
 (0)