Replace "-g" by "-gline-tables-only". "-g" is not supported by clang-cl.
Details
Diff Detail
Event Timeline
lib/Fuzzer/test/CMakeLists.txt | ||
---|---|---|
37 | Does clang-cl not support -g? |
lib/Fuzzer/test/CMakeLists.txt | ||
---|---|---|
28 | @zturner, Yes, the only compiler in windows for this code is clang. I can use a more explicit flag. | |
30 | @kcc Ok. I couldn't get that information from the documentation. | |
37 | Yes, clang-cl doesn't support -g. |
lib/Fuzzer/test/CMakeLists.txt | ||
---|---|---|
30 |
Which documentation?
What exactly is not working? (probably let's take it into another thread) | |
37 | Sad, but ok. |
lib/Fuzzer/test/CMakeLists.txt | ||
---|---|---|
30 | @kcc I refer to the Sanitizer Coverage documentation: http://clang.llvm.org/docs/SanitizerCoverage.html |
lib/Fuzzer/test/CMakeLists.txt | ||
---|---|---|
30 | Yep, because non of it is supported on windows (in terms of 'my team supporting them n windows'). Anyway, libFuzzer will soon stop supporting anything but the options being used currently. |
please
a) update the change description.
b) find an analog for -g that works for both versions.
btw, we really only need -gmlt (= -gline-tables-only), so check if those work.
Technically we don't support MSVC, only clang-cl. So I would change this to if (CLANG_CL).