Distinguish Debug and Checked builds in version resource (#53847)
authorBruce Forstall <brucefo@microsoft.com>
Tue, 8 Jun 2021 17:05:29 +0000 (10:05 -0700)
committerGitHub <noreply@github.com>
Tue, 8 Jun 2021 17:05:29 +0000 (10:05 -0700)
In the Win32 version resource, this changes the "Comment" field
from:
```
  Flavor=Checked
```
to:
```
  Flavor=Debug
```

It also properly sets `BUILDENV_DEBUG=1` for debug builds (only used in
exactly one place: gc.cpp).

eng/native/configurecompiler.cmake

index 9a6832c..99a8013 100644 (file)
@@ -43,7 +43,8 @@ set(CMAKE_EXE_LINKER_FLAGS_DEBUG "")
 set(CMAKE_EXE_LINKER_FLAGS_DEBUG "")
 set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "")
 
-add_compile_definitions("$<$<OR:$<CONFIG:DEBUG>,$<CONFIG:CHECKED>>:DEBUG;_DEBUG;_DBG;URTBLDENV_FRIENDLY=Checked;BUILDENV_CHECKED=1>")
+add_compile_definitions("$<$<CONFIG:DEBUG>:DEBUG;_DEBUG;_DBG;URTBLDENV_FRIENDLY=Debug;BUILDENV_DEBUG=1>")
+add_compile_definitions("$<$<CONFIG:CHECKED>:DEBUG;_DEBUG;_DBG;URTBLDENV_FRIENDLY=Checked;BUILDENV_CHECKED=1>")
 add_compile_definitions("$<$<OR:$<CONFIG:RELEASE>,$<CONFIG:RELWITHDEBINFO>>:NDEBUG;URTBLDENV_FRIENDLY=Retail>")
 
 if (MSVC)