mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-24 17:26:47 +00:00
rig-build: -j12, and a deps image that has wxInspector
Raises the bound from -j8 to -j12: the incident dump measured 1.17 GB average per cc1plus, so 12 in flight is ~14 GB typical, well inside the 40 GB cgroup ceiling that is the real guarantee. Keeps the file byte-identical to snaporca's copy, which the header requires. Dockerfile.deps builds the deps with -j 12 for the same reason, and symlinks deps/build/destdir -> deps/build/OrcaSlicer_dep: this tree installs under the latter name while the orcacad_buildcache volume has the former baked as absolute paths in its CMakeCache. Same tree, two names — without the link, one directory rename costs a full cold rebuild.
This commit is contained in:
+11
-1
@@ -67,4 +67,14 @@ RUN ./build_linux.sh -u
|
||||
|
||||
# Pinned dependencies in ./deps (OCCT 7.6 with ModelingAlgorithms enabled, OpenCV,
|
||||
# OpenVDB, Boost, wxWidgets, ...). This is the long step; it is baked into the image.
|
||||
RUN ./build_linux.sh -dr
|
||||
# -j 12, not the default all-cores: on 2026-08-21 an unbounded deps build plus an unbounded
|
||||
# app build put 42 GB of cc1plus on a 62 GB box and OOM-killed the host for 2h28m. 12 keeps
|
||||
# the compile fast while leaving the machine usable. Pair with `docker build --memory`.
|
||||
RUN ./build_linux.sh -dr -j 12
|
||||
|
||||
# Compatibility symlink. This deps tree installs into deps/build/OrcaSlicer_dep/, while the
|
||||
# orcacad_buildcache volume was configured against the previous image, whose prefix was
|
||||
# deps/build/destdir/. Those paths are baked as absolute strings into the app's CMakeCache, so
|
||||
# without this symlink a rebuild on the new image reconfigures from scratch — hours of compile
|
||||
# to change one directory name. Same tree, two names.
|
||||
RUN ln -sfn /OrcaSlicer/deps/build/OrcaSlicer_dep /OrcaSlicer/deps/build/destdir
|
||||
|
||||
Reference in New Issue
Block a user