mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
Build script improvements. (#7914)
* Build script improvements. Add NDEBUG for non-debug MacOS builds. I don't understand why, but on my system Release and RelWithDebugInfo builds were not defining NDEBUG, resulting in failing asserts and other sanity checks. Add -jN flag to BuildLinux.sh. On my 4-core 8GB RAM system, passing -j4 allows building without a swap storm. Improve README.md description of building on macOS. * Merge branch 'main' into bug/macos-ndebug * Merge branch 'main' into bug/macos-ndebug * Merge branch 'SoftFever:main' into bug/macos-ndebug * Improve CMake syntax. Mention Mac path to app. * Merge branch 'main' into bug/macos-ndebug
This commit is contained in:
@@ -182,7 +182,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
if(NOT WIN32)
|
||||
# Add DEBUG flags to debug builds.
|
||||
add_compile_options("$<$<CONFIG:DEBUG>:-DDEBUG>")
|
||||
add_compile_definitions("$<IF:$<CONFIG:Debug>,DEBUG,NDEBUG>")
|
||||
endif()
|
||||
|
||||
# To be able to link libslic3r with the Perl XS module.
|
||||
|
||||
Reference in New Issue
Block a user