DirectXShaderCompiler/cmake/modules
Chris B fb873d0a14
Clean up debug preprocessor macros (#4305)
* Clean up debug preprocessor macros

This change removes the `DBG` macro value in favor of `NDEBUG`, and
also converts many uses of `_DEBUG` with `NDEBUG`.

_DEBUG is set by MSVC when debug information generation is enabled.
NDEBUG is set by CMake debug configurations and by LLVM on all
configurations when `LLVM_ENABLE_ASSERTIONS` is set.

Aligning with LLVM's NDEBUG usage allows a consistent pattern
throughout the codebase.

* Address PR feedback
2022-03-02 14:55:24 -06:00
..
AddLLVM.cmake Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
AddLLVMDefinitions.cmake first commit 2016-12-28 11:52:27 -08:00
AddOCaml.cmake first commit 2016-12-28 11:52:27 -08:00
AddSphinxTarget.cmake first commit 2016-12-28 11:52:27 -08:00
CMakeLists.txt Revert license text in banner comments to original llvm verbage (#33) 2017-01-24 17:54:00 -08:00
CheckAtomic.cmake first commit 2016-12-28 11:52:27 -08:00
ChooseMSVCCRT.cmake first commit 2016-12-28 11:52:27 -08:00
CrossCompile.cmake first commit 2016-12-28 11:52:27 -08:00
FindD3D12.cmake Use D3D12 headers from the same Windows 10 SDK version as cmake is using (#3586) 2021-03-16 09:15:03 -07:00
FindDiaSDK.cmake Fix finding Dia SDK on non-VS generators (#4087) 2021-11-17 11:46:49 -08:00
FindOCaml.cmake first commit 2016-12-28 11:52:27 -08:00
FindSphinx.cmake first commit 2016-12-28 11:52:27 -08:00
FindTAEF.cmake New HLSL_AGILITYSDK_DIR and HLSLHost dependency copying help. (#4297) 2022-02-24 14:04:52 -08:00
GetHostTriple.cmake first commit 2016-12-28 11:52:27 -08:00
GetSVN.cmake first commit 2016-12-28 11:52:27 -08:00
HCT.cmake Minor fix for dependencies of generated sources (#4065) 2021-11-09 12:36:00 -06:00
HandleLLVMOptions.cmake Clean up debug preprocessor macros (#4305) 2022-03-02 14:55:24 -06:00
HandleLLVMStdlib.cmake first commit 2016-12-28 11:52:27 -08:00
LLVM-Config.cmake first commit 2016-12-28 11:52:27 -08:00
LLVMConfig.cmake.in first commit 2016-12-28 11:52:27 -08:00
LLVMConfigVersion.cmake.in first commit 2016-12-28 11:52:27 -08:00
LLVMProcessSources.cmake first commit 2016-12-28 11:52:27 -08:00
TableGen.cmake first commit 2016-12-28 11:52:27 -08:00
VersionFromVCS.cmake first commit 2016-12-28 11:52:27 -08:00