diff options
author | Fangrui Song <i@maskray.me> | 2024-07-30 10:13:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-30 10:13:18 -0700 |
commit | d69d981d77ee2c9aa740e192d81dabb53c7c3cda (patch) | |
tree | c6caf1df4d6934ab92d6fbdaa7a1d6b520a47361 /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h | |
parent | c95abe94aebb6862c3518e590343df3b7376ccee (diff) | |
download | llvm-d69d981d77ee2c9aa740e192d81dabb53c7c3cda.zip llvm-d69d981d77ee2c9aa740e192d81dabb53c7c3cda.tar.gz llvm-d69d981d77ee2c9aa740e192d81dabb53c7c3cda.tar.bz2 |
[Tooling] -fsyntax-only adjuster: remove -c and -S
compile_commands.json entries often have -c. When adding -fsyntax-only,
we should remove -c to prevent the following warning:
```
% clang -c -fsyntax-only a.c
clang: warning: argument unused during compilation: '-c' [-Wunused-command-line-argument]
```
Previously, -c and -S were inappropriately claimed in
`addPGOAndCoverageFlags` (see the workaround added by commit
a07b135ce0c0111bd83450b5dc29ef0381cdbc39). Now the workaround have been
removed (#98607). (clangDriver reports a -Wunused-command-line-argument
diagnostic for each unclaimed option.)
Fix #100909
Pull Request: https://github.com/llvm/llvm-project/pull/101103
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h')
0 files changed, 0 insertions, 0 deletions