Skip to content

Commit

Permalink
Do review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky committed Jul 14, 2023
1 parent f6987ed commit 619966b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion eng/native/configurecompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ if (MSVC)
# For Release builds, we shall dynamically link into uCRT [ucrtbase.dll] (which is pushed down as a Windows Update on downlevel OS) but
# wont do the same for debug/checked builds since ucrtbased.dll is not redistributable and Debug/Checked builds are not
# production-time scenarios.
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded$<$<OR:$<CONFIG:Debug>,$<CONFIG:Checked>>:Debug>)
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded$<$<AND:$<OR:$<CONFIG:Debug>,$<CONFIG:Checked>>,$<NOT:$<BOOL:$<TARGET_PROPERTY:DAC_COMPONENT>>>>:Debug>)

if (NOT CLR_CMAKE_ENABLE_SANITIZERS)
# Force uCRT to be dynamically linked for Release build
Expand Down
2 changes: 2 additions & 0 deletions eng/native/init-vs-env.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ exit /b 1
if "%__VCBuildArch%"=="" exit /b 0

:: Set the environment for the native build
:: We can set SkipVCEnvInit to skip setting up the MSVC environment from VS and instead assume that the current environment is set up correctly.
:: This is very useful for testing with new MSVC versions that aren't in a VS build yet.
if not defined SkipVCEnvInit (
if not exist "%VCINSTALLDIR%Auxiliary\Build\vcvarsall.bat" goto :VSMissing
call "%VCINSTALLDIR%Auxiliary\Build\vcvarsall.bat" %__VCBuildArch%
Expand Down

0 comments on commit 619966b

Please sign in to comment.