-
Notifications
You must be signed in to change notification settings - Fork 552
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
fix: handle -Xclang args when invoking clang/clang++ on windows cmake #1500
Conversation
04e55cb
to
a53c685
Compare
This PR also pass the unsupported flag name to error log, so that we can know which flag failed. |
Codecov ReportBase: 30.09% // Head: 30.09% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #1500 +/- ##
=======================================
Coverage 30.09% 30.09%
=======================================
Files 47 47
Lines 16643 16643
Branches 7907 7907
=======================================
Hits 5008 5008
Misses 6315 6315
Partials 5320 5320 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
src/compiler/clang.rs
Outdated
@@ -184,6 +185,7 @@ counted_array!(pub static ARGS: [ArgInfo<gcc::ArgData>; _] = [ | |||
take_arg!("-fprofile-use", PathBuf, Concatenated('='), ClangProfileUse), | |||
take_arg!("-fsanitize-blacklist", PathBuf, Concatenated('='), ExtraHashFile), | |||
take_arg!("-gcc-toolchain", OsString, Separated, PassThrough), | |||
flag!("-gcodeview", PreprocessorArgumentFlag), |
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.
-gcodeview is not a preprocessor flag
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.
Agree, should I add a PassThroughFlag here?
please run rustfmt on your changes |
Instead of clang-cl.