Skip to content

Commit 3536b93

Browse files
committed
cmake: don't use /MP on clang-cl
1 parent fb9b5ab commit 3536b93

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cmake/DaemonFlags.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,10 @@ if (NOT NACL AND BUILD_CLIENT)
265265
endif()
266266

267267
if (YOKAI_CXX_COMPILER_MSVC_COMPATIBILITY)
268-
set_c_cxx_flag("/MP")
268+
if (YOKAI_CXX_COMPILER_MSVC)
269+
# /MP doesn't do anything and prints a warning in the Clang clone.
270+
set_c_cxx_flag("/MP")
271+
endif()
269272

270273
# There is no flag for standards before C++17
271274
if (USE_CPP23 AND USE_RECOMMENDED_CXX_STANDARD)

0 commit comments

Comments
 (0)