mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-22 21:50:51 -05:00
OCCT now builds only the toolkits libslic3r links, 26 with SLIC3R_CAD and 23 without, instead of whole modules. Every module is off and the list is passed in BUILD_ADDITIONAL_TOOLKITS, and OCCT adds their dependencies itself. The list must match OCCT_LIBS in src/libslic3r/CMakeLists.txt. OCCT's own precompiled headers are on. clang-cl can break exception copies with a precompiled header (llvm/llvm-project#53486), so clang-cl Ninja builds compile OCCT with cl, as Windows ARM64 already did. With the Visual Studio generator OCCT may stay on clang-cl, so precompiled headers are off there. The .pch files are deleted after install. libslic3r clears INTERFACE_PRECOMPILE_HEADERS on the OCCT targets so OCCT's headers are not merged into its own. The Windows x64 OCCT DLLs are now built with cl instead of clang-cl. OCCT's build time drops by about 45% on Windows and from 6m28 to 1m58 on Linux.