diff options
author | Dave Lee <davelee.com@gmail.com> | 2020-09-21 10:22:51 -0700 |
---|---|---|
committer | Dave Lee <davelee.com@gmail.com> | 2020-09-21 10:23:17 -0700 |
commit | b36bdfe5ca0c2b863248f327b03d41516b38dc11 (patch) | |
tree | 678b317b8fd8f1499cc1e8b82f8af3b8587a7e2e /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp | |
parent | 3b3b9ba1c7d89afe4909a42e2a795354bb79e062 (diff) | |
download | llvm-b36bdfe5ca0c2b863248f327b03d41516b38dc11.zip llvm-b36bdfe5ca0c2b863248f327b03d41516b38dc11.tar.gz llvm-b36bdfe5ca0c2b863248f327b03d41516b38dc11.tar.bz2 |
[cmake] Centralize LLVM_ENABLE_WARNINGS option
Configure default value of `LLVM_ENABLE_WARNINGS` in `HandleLLVMOptions.cmake`.
`LLVM_ENABLE_WARNINGS` is documented as ON by default, but `HandleLLVMOptions` assumes the default has been set somewhere else. If it has not been explicitly set, then `HandleLLVMOptions` implicitly uses OFF as a default.
This removes the various `option()` declarations in favor of a single declaration in `HandleLLVMOptions`. This will prevent the unwanted use of `-w` that is mentioned in a couple of the comments.
Reviewed By: DavidTruby, #libunwind, JDevlieghere, compnerd
Differential Revision: https://reviews.llvm.org/D87243
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
0 files changed, 0 insertions, 0 deletions