Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions runtime/cmake/clang-cl-xwin.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT _xwin_debug_crt)
endif()
set(CMAKE_TRY_COMPILE_CONFIGURATION Release)

# Ensure static MSVC runtime (/MT) so D3D12 test executables don't import msvcp140.dll
# (7 tests were hitting msvcp140.dll!??0ios_base@std@@IEAA@XZ even with -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded
# on the command line; setting it here propagates to all targets including shared helpers).
if(NOT CMAKE_MSVC_RUNTIME_LIBRARY)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()

# The Vulkan headers are the same on every platform, but /usr/include also holds glibc's, which must not shadow the
# MSVC CRT. Point Vulkan_INCLUDE_DIR at a folder that holds only vulkan/ and vk_video/ (links to the host copies),
# unless another folder was given (-DVulkan_INCLUDE_DIR=<Vulkan-Headers>/include). The links are (re)made on every
Expand Down