cl.exe doesn't understand it; there's /Od instead. See also the review
thread for r229575.
Update lots of compiler-rt tests to use -Od instead of -O0.
Ran rg -l 'clang_cl.*O0' compiler-rt/test/ | xargs sed -i -c 's/-O0/-Od/'
Differential D64506
clang-cl: Remove -O0 option thakis on Jul 10 2019, 9:12 AM. Authored by
Details cl.exe doesn't understand it; there's /Od instead. See also the review Update lots of compiler-rt tests to use -Od instead of -O0.
Diff Detail Event TimelineComment Actions I did check that we now warn, like you had requested: $ out/gn/bin/clang-cl test.cc /O0 /c clang: warning: argument unused during compilation: '/O0' [-Wunused-command-line-argument] Adding a test for that felt weird though, so I didn't. Comment Actions Does clang-cl -O0 without a / still work, though? It's used: $ git grep O0 ../compiler-rt/test/asan/TestCases/Windows/ Comment Actions Oh thanks, I only ran clang tests, not compiler-rt tests. It no longer works, O isn't a CoreOption: $ out/gn/bin/clang-cl test.cc -O0 /c clang: warning: argument unused during compilation: '-O0' [-Wunused-command-line-argument] But these tests should just use /Od, right? |