Repository navigation
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3074 +/- ##
==========================================
+ Coverage 79.99% 80.68% +0.68%
==========================================
Files 76 78 +2
Lines 47374 48629 +1255
==========================================
+ Hits 37897 39235 +1338
+ Misses 9477 9394 -83 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@sylvestre please could you take a look at this one please. It's a response to your previous code review comments. |
| msvc_flag!("forceInterlockedFunctions-", PassThrough), | ||
| msvc_take_arg!("fp:", OsString, Concatenated, PassThroughWithSuffix), | ||
| msvc_take_arg!("fpcvt:", OsString, Concatenated, PassThroughWithSuffix), | ||
| msvc_flag!("fprofile-instr-generate", ClangProfileGenerate), |
There was a problem hiding this comment.
what about -fprofile-instr-generate=<file>?
it will still be passed as an unknown flag without setting profile_generate
There was a problem hiding this comment.
good catch. Fixed.
Both -fprofile-instr-generate= and -clang:-fprofile-instr-generate= now set profile_generate. I extended the existing test to cover both filename forms.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
| flag!("-fprebuilt-implicit-modules", TooHardFlag), | ||
| take_arg!("-fprebuilt-module-path", OsString, Concatenated, TooHard), | ||
| flag!("-fprofile-instr-generate", ProfileGenerate), | ||
| take_arg!("-fprofile-instr-generate=", OsString, Concatenated, ProfileGenerateWithPath), |
There was a problem hiding this comment.
this changes plain clang too, could you please add a test in clang.rs for -fprofile-instr-generate=foo.profraw?
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Follow-up to #2962:
-fprofile-instr-generatefor clang-cl so it selects-E(preserving line markers), just like-clang:-fprofile-instr-generate. The regression test checks that the direct flag setsprofile_generateand is still forwarded to clang-cl.CannotCachearm for unsupported clang-specific flags.Validation on Windows:
cargo fmt -- --check,cargo clippy --locked --lib --tests, andcargo test --locked --lib -- --test-threads=1(696 passed).Authored with GHCP assistance.