-
Notifications
You must be signed in to change notification settings - Fork 460
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
Add Build::asm_flag
#752
Add Build::asm_flag
#752
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine.
src/lib.rs
Outdated
fn is_asm(file: &Path) -> bool { | ||
if let Some(ext) = file.extension() { | ||
let ext = ext.to_ascii_lowercase(); | ||
ext == "asm" || ext == "s" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably will need some adjustment over time, but I don't see anything it's concretely missing now.
Ah, there's no to_ascii_lowercase on OsStr back then, that will need to be fixed. |
ec19756
to
15f4444
Compare
The method allows flags to be specified that are only applied to assembly input files, not C files. This is helpful with clang, which only accepts certain assembly options if the input file is asm, not C.
15f4444
to
b377da7
Compare
I changed the test to disable it if the |
Yeah that's fine. |
I'll try to cut a release with this and some other changes this weekend. (CC @Mark-Simulacrum) |
Great, thanks for the quick review :) |
This is in 1.0.77. |
The method allows flags to be specified that are only applied to assembly input files, not C files. This is helpful with clang, which only accepts certain assembly options if the input file is asm, not C.
Closes #751