Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seems LLVM is deprecating single hypen long options in LLVM 11... #92

Merged
merged 1 commit into from
Sep 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -323,17 +323,17 @@ pub fn run(tool: Tool, matches: ArgMatches) -> Result<i32> {
if arch_name == "thumb" {
// `-arch-name=thumb` doesn't produce the right output so instead we pass
// `-triple=$target`, which contains more information about the target
lltool.args(&["-triple", &ctxt.target]);
lltool.args(&["--triple", &ctxt.target]);
} else {
lltool.args(&["-arch-name", arch_name]);
lltool.args(&["--arch-name", arch_name]);
}
}

// Extra flags
if let Tool::Readobj = tool {
// The default output style of `readobj` is JSON-like, which is not user friendly, so we
// change it to the human readable GNU style
lltool.arg("-elf-output-style=GNU");
lltool.arg("--elf-output-style=GNU");
}

if tool.needs_build() {