llvm-mirror/cmake/modules
Logan Smith c2132beee1 Reapply "Try enabling -Wsuggest-override again, using add_compile_options instead of add_compile_definitions for disabling it in unittests/ directories."
add_compile_options is more sensitive to its location in the file than add_definitions--it only takes effect for sources that are added after it. This updated patch ensures that the add_compile_options is done before adding any source files that depend on it.

Using add_definitions caused the flag to be passed to rc.exe on Windows and thus broke Windows builds.
2020-07-22 17:50:19 -07:00
..
AddLLVM.cmake
AddLLVMDefinitions.cmake
AddOCaml.cmake
AddSphinxTarget.cmake
CheckAtomic.cmake
CheckCompilerVersion.cmake
CheckLinkerFlag.cmake
ChooseMSVCCRT.cmake
CMakeLists.txt
CrossCompile.cmake
DetermineGCCCompatible.cmake
FindGRPC.cmake
FindLibpfm.cmake
FindOCaml.cmake
FindSphinx.cmake
FindZ3.cmake
GenerateVersionFromVCS.cmake
GetHostTriple.cmake
HandleLLVMOptions.cmake Reapply "Try enabling -Wsuggest-override again, using add_compile_options instead of add_compile_definitions for disabling it in unittests/ directories." 2020-07-22 17:50:19 -07:00
HandleLLVMStdlib.cmake
LLVM-Config.cmake
LLVMConfig.cmake.in
LLVMConfigVersion.cmake.in
LLVMDistributionSupport.cmake
LLVMExternalProjectUtils.cmake
LLVMInstallSymlink.cmake
LLVMProcessSources.cmake
TableGen.cmake
TensorFlowCompile.cmake
UseLibtool.cmake
VersionFromVCS.cmake