libclang_rt.profile should be added when -fcs-profile-generate is on thecommand line.
Also, OPT_fno_profile_instr_generate was used as a negative for OPT_fprofile_generate. Fix it to use OPT_fno_profile_generate.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM, please check if adding the test I request makes sense.
Thank you!
clang/lib/Driver/ToolChains/PS4CPU.cpp | ||
---|---|---|
33 | Please add one test showing this fix: |
Please add one test showing this fix:
-fprofile-generate -fno-profile-instr-generate should emit the options that -fprofile-generate does, no? (There might be some logic later on that errors on this. If that's the case, no need for the added test)