mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-10 02:37:04 +00:00
fix: restore compile parallelism for clang-cl builds with the Visual Studio generator (#15324)
This commit is contained in:
@@ -343,7 +343,10 @@ else ()
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
if (SLIC3R_MSVC_COMPILE_PARALLEL AND NOT IS_CLANG_CL)
|
# /MP only matters for the VS generators, where CMake turns it into the
|
||||||
|
# MultiProcessorCompilation property. Ninja parallelises on its own, and
|
||||||
|
# clang-cl warns "argument unused" if the flag reaches it.
|
||||||
|
if (SLIC3R_MSVC_COMPILE_PARALLEL AND CMAKE_GENERATOR MATCHES "Visual Studio")
|
||||||
add_compile_options(/MP)
|
add_compile_options(/MP)
|
||||||
endif ()
|
endif ()
|
||||||
# /bigobj (Increase Number of Sections in .Obj file)
|
# /bigobj (Increase Number of Sections in .Obj file)
|
||||||
|
|||||||
Reference in New Issue
Block a user