зеркало из https://github.com/microsoft/vcpkg.git
Toolchain update to remove /MP when using clang-cl custom triplets (#31428)
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
Родитель
1c5636cbc2
Коммит
e288d7bddb
|
@ -41,8 +41,13 @@ if(NOT _CMAKE_IN_TRY_COMPILE)
|
|||
set(CHARSET_FLAG)
|
||||
endif()
|
||||
|
||||
set(MP_BUILD_FLAG "")
|
||||
if(NOT (CMAKE_CXX_COMPILER MATCHES "clang-cl.exe"))
|
||||
set(MP_BUILD_FLAG "/MP")
|
||||
endif()
|
||||
|
||||
set(_vcpkg_cpp_flags "/DWIN32 /D_WINDOWS /D_UNICODE /DUNICODE /DWINAPI_FAMILY=WINAPI_FAMILY_APP /D__WRL_NO_DEFAULT_LIB__" ) # VS adds /D "_WINDLL" for DLLs;
|
||||
set(_vcpkg_common_flags "/nologo /Z7 /MP /GS /Gd /Gm- /W3 /WX- /Zc:wchar_t /Zc:inline /Zc:forScope /fp:precise /Oy- /EHsc")
|
||||
set(_vcpkg_common_flags "/nologo /Z7 ${MP_BUILD_FLAG} /GS /Gd /Gm- /W3 /WX- /Zc:wchar_t /Zc:inline /Zc:forScope /fp:precise /Oy- /EHsc")
|
||||
#/ZW:nostdlib -> ZW is added by CMake # VS also normally adds /sdl but not cmake MSBUILD
|
||||
set(_vcpkg_winmd_flag "")
|
||||
file(TO_CMAKE_PATH "$ENV{VCToolsInstallDir}" _vcpkg_vctools)
|
||||
|
|
|
@ -51,8 +51,13 @@ if(NOT _CMAKE_IN_TRY_COMPILE)
|
|||
set(CHARSET_FLAG)
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_FLAGS " /nologo /DWIN32 /D_WINDOWS /W3 ${CHARSET_FLAG} /GR /EHsc /MP ${VCPKG_CXX_FLAGS}" CACHE STRING "")
|
||||
set(CMAKE_C_FLAGS " /nologo /DWIN32 /D_WINDOWS /W3 ${CHARSET_FLAG} /MP ${VCPKG_C_FLAGS}" CACHE STRING "")
|
||||
set(MP_BUILD_FLAG "")
|
||||
if(NOT (CMAKE_CXX_COMPILER MATCHES "clang-cl.exe"))
|
||||
set(MP_BUILD_FLAG "/MP")
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_FLAGS " /nologo /DWIN32 /D_WINDOWS /W3 ${CHARSET_FLAG} /GR /EHsc ${MP_BUILD_FLAG} ${VCPKG_CXX_FLAGS}" CACHE STRING "")
|
||||
set(CMAKE_C_FLAGS " /nologo /DWIN32 /D_WINDOWS /W3 ${CHARSET_FLAG} ${MP_BUILD_FLAG} ${VCPKG_C_FLAGS}" CACHE STRING "")
|
||||
|
||||
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64ec")
|
||||
string(APPEND CMAKE_CXX_FLAGS " /arm64EC /D_AMD64_ /DAMD64 /D_ARM64EC_ /DARM64EC")
|
||||
|
|
|
@ -64,8 +64,13 @@ if(NOT _CMAKE_IN_TRY_COMPILE)
|
|||
set(_vcpkg_core_libs onecore_apiset.lib)
|
||||
set(_vcpkg_default_lib onecore_apiset.lib)
|
||||
|
||||
set(MP_BUILD_FLAG "")
|
||||
if(NOT (CMAKE_CXX_COMPILER MATCHES "clang-cl.exe"))
|
||||
set(MP_BUILD_FLAG "/MP")
|
||||
endif()
|
||||
|
||||
set(_vcpkg_cpp_flags "/DWIN32 /D_WINDOWS /D_UNICODE /DUNICODE /DWINAPI_FAMILY=WINAPI_FAMILY_GAMES /D_WIN32_WINNT=0x0A00 /D_ATL_NO_DEFAULT_LIBS /D__WRL_NO_DEFAULT_LIB__ /D__WRL_CLASSIC_COM_STRICT__ /D_UITHREADCTXT_SUPPORT=0 /D_CRT_USE_WINAPI_PARTITION_APP")
|
||||
set(_vcpkg_common_flags "/nologo /Z7 /MP /GS /Gd /W3 /WX- /Zc:wchar_t /Zc:inline /Zc:forScope /fp:precise /Oy- /EHsc /utf-8")
|
||||
set(_vcpkg_common_flags "/nologo /Z7 ${MP_BUILD_FLAG} /GS /Gd /W3 /WX- /Zc:wchar_t /Zc:inline /Zc:forScope /fp:precise /Oy- /EHsc /utf-8")
|
||||
|
||||
# Add the Microsoft GDK if present
|
||||
if (DEFINED _vcpkg_grdk)
|
||||
|
|
Загрузка…
Ссылка в новой задаче