Skip to content

Commit 090f820

Browse files
committed
Merge remote-tracking branch 'upstream/main' into update-windows-buildscript
# Conflicts: # build_release.bat # build_release_vs2022.bat
2 parents f1ce47a + a839b81 commit 090f820

File tree

2,474 files changed

+1184293
-61252
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,474 files changed

+1184293
-61252
lines changed

.devcontainer/devcontainer.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@
1717
"customizations": {
1818
"vscode": {
1919
"settings": {
20-
"cmake.configureArgs": [
21-
"-DSLIC3R_GTK=3",
22-
"-DBBL_RELEASE_TO_PUBLIC=1",
23-
"-DBBL_INTERNAL_TESTING=0",
24-
"-DSLIC3R_STATIC=1",
25-
"-DCMAKE_PREFIX_PATH=${workspaceFolder}/deps/build/destdir/usr/local"
26-
]
2720
},
2821

2922
// Add the IDs of extensions you want installed when the container is created.

.github/workflows/build_all.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ jobs:
7676
- /opt/ghc:/opt/ghc1
7777
- /usr/local/share/boost:/usr/local/share/boost1
7878
strategy:
79+
fail-fast: false
7980
matrix:
8081
variant:
8182
- arch: x86_64

.github/workflows/build_check_cache.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ jobs:
3333
- name: set outputs
3434
id: set_outputs
3535
env:
36-
# todo: this is mad! refactor other build scripts to use same name
37-
dep-folder-name: ${{ inputs.os == 'windows-latest' && '/OrcaSlicer_dep' || inputs.os == 'macos-14' && '' || inputs.os != 'macos-14' && '/destdir' || '' }}
36+
dep-folder-name: ${{ inputs.os != 'macos-14' && '/OrcaSlicer_dep' || '' }}
3837
output-cmd: ${{ inputs.os == 'windows-latest' && '$env:GITHUB_OUTPUT' || '"$GITHUB_OUTPUT"'}}
3938
run: |
4039
echo cache-key=${{ inputs.os }}-cache-orcaslicer_deps-build-${{ hashFiles('deps/**') }} >> ${{ env.output-cmd }}

CMakeLists.txt

Lines changed: 82 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ endif ()
5555

5656
project(OrcaSlicer)
5757

58+
# Backward compatibility for old CMake versions
59+
if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_VERSION VERSION_LESS "3.25")
60+
set(LINUX ON CACHE BOOL "" FORCE)
61+
endif ()
62+
5863
include("version.inc")
5964
include(GNUInstallDirs)
6065
include(CMakeDependentOption)
@@ -67,6 +72,12 @@ if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
6772
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type (default Release)" FORCE)
6873
endif()
6974

75+
if (DEFINED BBL_RELEASE_TO_PUBLIC)
76+
add_compile_definitions("BBL_RELEASE_TO_PUBLIC=${BBL_RELEASE_TO_PUBLIC}")
77+
else ()
78+
add_compile_definitions("BBL_RELEASE_TO_PUBLIC=$<CONFIG:Release>")
79+
endif ()
80+
7081
find_package(Git)
7182
if(GIT_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.git")
7283
if(DEFINED ENV{git_commit_hash} AND NOT "$ENV{git_commit_hash}" STREQUAL "")
@@ -93,13 +104,9 @@ if(GIT_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.git")
93104
endif()
94105

95106
if(DEFINED ENV{SLIC3R_STATIC})
96-
set(SLIC3R_STATIC_INITIAL $ENV{SLIC3R_STATIC})
107+
set(SLIC3R_STATIC_INITIAL $ENV{SLIC3R_STATIC})
97108
else()
98-
if (MSVC OR MINGW OR APPLE)
99-
set(SLIC3R_STATIC_INITIAL 1)
100-
else()
101-
set(SLIC3R_STATIC_INITIAL 0)
102-
endif()
109+
set(SLIC3R_STATIC_INITIAL 1)
103110
endif()
104111

105112
option(SLIC3R_STATIC "Compile OrcaSlicer with static libraries (Boost, TBB, glew)" ${SLIC3R_STATIC_INITIAL})
@@ -117,7 +124,7 @@ CMAKE_DEPENDENT_OPTION(SLIC3R_DESKTOP_INTEGRATION "Allow perfoming desktop integ
117124

118125
set(OPENVDB_FIND_MODULE_PATH "" CACHE PATH "Path to OpenVDB installation's find modules.")
119126

120-
set(SLIC3R_GTK "2" CACHE STRING "GTK version to use with wxWidgets on Linux")
127+
set(SLIC3R_GTK "3" CACHE STRING "GTK version to use with wxWidgets on Linux")
121128

122129
set(IS_CROSS_COMPILE FALSE)
123130

@@ -131,6 +138,10 @@ if (${COLORED_OUTPUT})
131138
endif ()
132139

133140
if (APPLE)
141+
list(LENGTH CMAKE_OSX_ARCHITECTURES _arch_len)
142+
if (_arch_len GREATER 1)
143+
message(FATAL_ERROR "OrcaSlicer only supports building for one architecture at a time. Please make sure only one architecture is specified in CMAKE_OSX_ARCHITECTURES")
144+
endif ()
134145
set(CMAKE_FIND_FRAMEWORK LAST)
135146
set(CMAKE_FIND_APPBUNDLE LAST)
136147
list(FIND CMAKE_OSX_ARCHITECTURES ${CMAKE_SYSTEM_PROCESSOR} _arch_idx)
@@ -150,6 +161,14 @@ option(SLIC3R_BUILD_SANDBOXES "Build development sandboxes" OFF)
150161
option(BUILD_TESTS "Build unit tests" OFF)
151162
option(ORCA_TOOLS "Build Orca tools" OFF)
152163

164+
if (FLATPAK)
165+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++20")
166+
set(SLIC3R_PCH OFF CACHE BOOL "" FORCE)
167+
set(SLIC3R_FHS ON CACHE BOOL "" FORCE)
168+
set(BUILD_TESTS OFF CACHE BOOL "" FORCE)
169+
set(SLIC3R_DESKTOP_INTEGRATION OFF CACHE BOOL "" FORCE)
170+
endif ()
171+
153172
if (IS_CROSS_COMPILE)
154173
message("Detected cross compilation setup. Tests and encoding checks will be forcedly disabled!")
155174
set(SLIC3R_PERL_XS OFF CACHE BOOL "" FORCE)
@@ -173,6 +192,13 @@ if(SLIC3R_DESKTOP_INTEGRATION)
173192
add_definitions(-DSLIC3R_DESKTOP_INTEGRATION)
174193
endif ()
175194

195+
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
196+
message(STATUS "Automatically setting CMAKE_INSTALL_PREFIX")
197+
set_property(CACHE CMAKE_INSTALL_PREFIX PROPERTY VALUE "${CMAKE_BINARY_DIR}/OrcaSlicer")
198+
endif()
199+
200+
message(STATUS "CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}")
201+
176202
if (MSVC AND CMAKE_CXX_COMPILER_ID STREQUAL Clang)
177203
set(IS_CLANG_CL TRUE)
178204

@@ -218,24 +244,61 @@ if (NOT MSVC)
218244
add_compile_options(-fsigned-char)
219245
endif ()
220246

247+
if ("${DEP_BUILD_DIR}" STREQUAL "")
248+
get_filename_component(BIN_DIR_NAME ${CMAKE_BINARY_DIR} NAME)
249+
if (APPLE AND BIN_DIR_NAME STREQUAL "${CMAKE_OSX_ARCHITECTURES}")
250+
file(RELATIVE_PATH BIN_DIR_NAME ${CMAKE_BINARY_DIR}/../.. ${CMAKE_BINARY_DIR})
251+
endif ()
252+
set(DEP_BUILD_DIR "${CMAKE_SOURCE_DIR}/deps/${BIN_DIR_NAME}" CACHE PATH "Path to dependencies build directory" FORCE)
253+
message(STATUS "DEP_BUILD_DIR: ${DEP_BUILD_DIR} (generated automatically and saved to cache)")
254+
set(AUTOGENERATED_DEP_BUILD_DIR ${DEP_BUILD_DIR} CACHE PATH "Provides the last autogenerated DEP_BUILD_DIR" FORCE)
255+
else ()
256+
message(STATUS "DEP_BUILD_DIR: ${DEP_BUILD_DIR} (from cache or command line)")
257+
endif ()
258+
259+
if ("${CMAKE_PREFIX_PATH}" STREQUAL "" OR "${CMAKE_PREFIX_PATH}" STREQUAL "${AUTOGENERATED_PREFIX_PATH}")
260+
if (DEFINED AUTOGENERATED_DEP_BUILD_DIR AND NOT "${DEP_BUILD_DIR}" STREQUAL "${AUTOGENERATED_DEP_BUILD_DIR}")
261+
message(STATUS "CMAKE_PREFIX_PATH is being re-generated due to DEP_BUILD_DIR being manually updated")
262+
set(REGEN_DESTDIR TRUE)
263+
unset(AUTOGENERATED_DEP_BUILD_DIR CACHE)
264+
endif ()
265+
else ()
266+
unset(AUTOGENERATED_PREFIX_PATH CACHE)
267+
endif ()
268+
221269
# Display and check CMAKE_PREFIX_PATH
222-
message(STATUS "SLIC3R_STATIC: ${SLIC3R_STATIC}")
223-
if (NOT "${CMAKE_PREFIX_PATH}" STREQUAL "")
270+
if ("${CMAKE_PREFIX_PATH}" STREQUAL "" OR REGEN_DESTDIR)
271+
set(CMAKE_PREFIX_PATH "${DEP_BUILD_DIR}/OrcaSlicer_dep/usr/local" CACHE PATH "Path to dependencies install directory" FORCE)
272+
message(STATUS "CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH} (generated automatically and saved to cache)")
273+
set(AUTOGENERATED_PREFIX_PATH ${CMAKE_PREFIX_PATH} CACHE STRING "Provides the last autogenerated CMAKE_PREFIX_PATH" FORCE)
274+
unset(REGEN_DESTDIR CACHE)
275+
else ()
224276
message(STATUS "CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH} (from cache or command line)")
225-
set(PREFIX_PATH_CHECK ${CMAKE_PREFIX_PATH})
226-
elseif (NOT "$ENV{CMAKE_PREFIX_PATH}" STREQUAL "")
277+
endif ()
278+
set(PREFIX_PATH_CHECK ${CMAKE_PREFIX_PATH})
279+
280+
# the CMAKE_PREFIX_PATH environment variable is separate from the CMAKE_PREFIX_PATH cache variable and provides additional paths to search for libraries.
281+
if (NOT "$ENV{CMAKE_PREFIX_PATH}" STREQUAL "")
227282
message(STATUS "CMAKE_PREFIX_PATH: $ENV{CMAKE_PREFIX_PATH} (from environment)")
228-
set(PREFIX_PATH_CHECK $ENV{CMAKE_PREFIX_PATH})
229-
else ()
230-
message(STATUS "CMAKE_PREFIX_PATH: (default)")
283+
list(APPEND PREFIX_PATH_CHECK $ENV{CMAKE_PREFIX_PATH})
231284
endif ()
232285

286+
# Check all directories in CMAKE_PREFIX_PATH variables
233287
foreach (DIR ${PREFIX_PATH_CHECK})
234288
if (NOT EXISTS "${DIR}")
235289
message(WARNING "CMAKE_PREFIX_PATH element doesn't exist: ${DIR}")
236290
endif ()
237291
endforeach ()
238292

293+
if (APPLE)
294+
set(CMAKE_MACOSX_RPATH ON CACHE BOOL "")
295+
set(CMAKE_MACOSX_BUNDLE ON CACHE BOOL "")
296+
endif ()
297+
298+
if (APPLE AND CMAKE_MACOSX_RPATH AND "${CMAKE_INSTALL_RPATH}" STREQUAL "")
299+
set(CMAKE_INSTALL_RPATH ${CMAKE_PREFIX_PATH})
300+
endif ()
301+
239302
# Add our own cmake module path.
240303
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/modules/)
241304
message(STATUS "PROJECT_SOURCE_DIR: ${PROJECT_SOURCE_DIR}")
@@ -276,7 +339,11 @@ if(WIN32)
276339
endif()
277340
else()
278341
# Try to use the default Windows 10 SDK path.
279-
set(WIN10SDK_INCLUDE_PATH "$ENV{WindowsSdkDir}/Include/$ENV{WindowsSDKVersion}")
342+
if (DEFINED ENV{WindowsSdkDir} AND DEFINED ENV{WindowsSDKVersion})
343+
set(WIN10SDK_INCLUDE_PATH "$ENV{WindowsSdkDir}/Include/$ENV{WindowsSDKVersion}")
344+
else ()
345+
set(WIN10SDK_INCLUDE_PATH "C:/Program Files (x86)/Windows Kits/10/Include/10.0.22000.0")
346+
endif ()
280347
if (NOT EXISTS "${WIN10SDK_INCLUDE_PATH}/winrt/windows.graphics.printing3d.h")
281348
message("${WIN10SDK_INCLUDE_PATH}/winrt/windows.graphics.printing3d.h was not found")
282349
message("STL fixing by the Netfabb service will not be compiled")

build_linux.sh

Lines changed: 49 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ function usage() {
1010
echo "Usage: ./${SCRIPT_NAME} [-1][-b][-c][-d][-h][-i][-j N][-p][-r][-s][-t][-u][-l][-L]"
1111
echo " -1: limit builds to one core (where possible)"
1212
echo " -j N: limit builds to N cores (where possible)"
13-
echo " -b: build in debug mode"
13+
echo " -b: build in Debug mode"
1414
echo " -c: force a clean build"
1515
echo " -C: enable ANSI-colored compile output (GNU/Clang only)"
1616
echo " -d: download and build dependencies in ./deps/ (build prerequisite)"
17+
echo " -D: dry run"
18+
echo " -e: build in RelWithDebInfo mode"
1719
echo " -h: prints this help text"
1820
echo " -i: build the Orca Slicer AppImage (optional)"
1921
echo " -p: boost ccache hit rate by disabling precompiled headers (default: ON)"
@@ -31,7 +33,9 @@ function usage() {
3133
SLIC3R_PRECOMPILED_HEADERS="ON"
3234

3335
unset name
34-
while getopts ":1j:bcCdhiprstulL" opt ; do
36+
BUILD_DIR=build
37+
BUILD_CONFIG=Release
38+
while getopts ":1j:bcCdDehiprstulL" opt ; do
3539
case ${opt} in
3640
1 )
3741
export CMAKE_BUILD_PARALLEL_LEVEL=1
@@ -40,7 +44,8 @@ while getopts ":1j:bcCdhiprstulL" opt ; do
4044
export CMAKE_BUILD_PARALLEL_LEVEL=$OPTARG
4145
;;
4246
b )
43-
BUILD_DEBUG="1"
47+
BUILD_DIR=build-dbg
48+
BUILD_CONFIG=Debug
4449
;;
4550
c )
4651
CLEAN_BUILD=1
@@ -51,6 +56,13 @@ while getopts ":1j:bcCdhiprstulL" opt ; do
5156
d )
5257
BUILD_DEPS="1"
5358
;;
59+
D )
60+
DRY_RUN="1"
61+
;;
62+
e )
63+
BUILD_DIR=build-dbginfo
64+
BUILD_CONFIG=RelWithDebInfo
65+
;;
5466
h ) usage
5567
exit 1
5668
;;
@@ -112,6 +124,21 @@ function check_available_memory_and_disk() {
112124
fi
113125
}
114126

127+
function print_and_run() {
128+
cmd=()
129+
# Remove empty arguments, leading and trailing spaces
130+
for item in "$@" ; do
131+
if [[ -n $item ]]; then
132+
cmd+=( "$(echo "${item}" | xargs)" )
133+
fi
134+
done
135+
136+
echo "${cmd[@]}"
137+
if [[ -z "${DRY_RUN}" ]] ; then
138+
"${cmd[@]}"
139+
fi
140+
}
141+
115142
# cmake 4.x compatibility workaround
116143
export CMAKE_POLICY_VERSION_MINIMUM=3.5
117144

@@ -137,7 +164,7 @@ else
137164
source "./scripts/linux.d/${DISTRIBUTION}"
138165
fi
139166

140-
echo "FOUND_GTK3=${FOUND_GTK3}"
167+
echo "FOUND_GTK3_DEV=${FOUND_GTK3_DEV}"
141168
if [[ -z "${FOUND_GTK3_DEV}" ]] ; then
142169
echo "Error, you must install the dependencies before."
143170
echo "Use option -u with sudo"
@@ -176,51 +203,27 @@ fi
176203
if [[ -n "${BUILD_DEPS}" ]] ; then
177204
echo "Configuring dependencies..."
178205
read -r -a BUILD_ARGS <<< "${DEPS_EXTRA_BUILD_ARGS}"
179-
BUILD_ARGS+=(-DDEP_WX_GTK3=ON)
180206
if [[ -n "${CLEAN_BUILD}" ]]
181207
then
182-
rm -fr deps/build
208+
print_and_run rm -fr deps/$BUILD_DIR
183209
fi
184-
mkdir -p deps/build
185-
if [[ -n "${BUILD_DEBUG}" ]] ; then
186-
# build deps with debug and release else cmake will not find required sources
187-
mkdir -p deps/build/release
188-
set -x
189-
cmake -S deps -B deps/build/release "${CMAKE_C_CXX_COMPILER_CLANG[@]}" "${CMAKE_LLD_LINKER_ARGS[@]}" -G Ninja \
190-
-DSLIC3R_PCH="${SLIC3R_PRECOMPILED_HEADERS}" \
191-
-DDESTDIR="${SCRIPT_PATH}/deps/build/destdir" \
192-
-DDEP_DOWNLOAD_DIR="${SCRIPT_PATH}/deps/DL_CACHE" \
193-
"${COLORED_OUTPUT}" \
194-
"${BUILD_ARGS[@]}"
195-
set +x
196-
cmake --build deps/build/release
197-
BUILD_ARGS+=(-DCMAKE_BUILD_TYPE=Debug)
210+
mkdir -p deps/$BUILD_DIR
211+
if [[ $BUILD_CONFIG != Release ]] ; then
212+
BUILD_ARGS+=(-DCMAKE_BUILD_TYPE="${BUILD_CONFIG}")
198213
fi
199214

200-
set -x
201-
cmake -S deps -B deps/build "${CMAKE_C_CXX_COMPILER_CLANG[@]}" "${CMAKE_LLD_LINKER_ARGS[@]}" -G Ninja \
202-
-DSLIC3R_PCH="${SLIC3R_PRECOMPILED_HEADERS}" \
203-
-DDESTDIR="${SCRIPT_PATH}/deps/build/destdir" \
204-
-DDEP_DOWNLOAD_DIR="${SCRIPT_PATH}/deps/DL_CACHE" \
205-
"${COLORED_OUTPUT}" \
206-
"${BUILD_ARGS[@]}"
207-
set +x
208-
cmake --build deps/build
215+
print_and_run cmake -S deps -B deps/$BUILD_DIR "${CMAKE_C_CXX_COMPILER_CLANG[@]}" "${CMAKE_LLD_LINKER_ARGS[@]}" -G Ninja "${COLORED_OUTPUT}" "${BUILD_ARGS[@]}"
216+
print_and_run cmake --build deps/$BUILD_DIR
209217
fi
210218

211219
if [[ -n "${BUILD_ORCA}" ]] ; then
212220
echo "Configuring OrcaSlicer..."
213221
if [[ -n "${CLEAN_BUILD}" ]] ; then
214-
rm -fr build
222+
print_and_run rm -fr $BUILD_DIR
215223
fi
216224
read -r -a BUILD_ARGS <<< "${ORCA_EXTRA_BUILD_ARGS}"
217-
if [[ -n "${FOUND_GTK3_DEV}" ]] ; then
218-
BUILD_ARGS+=(-DSLIC3R_GTK=3)
219-
fi
220-
if [[ -n "${BUILD_DEBUG}" ]] ; then
221-
BUILD_ARGS+=(-DCMAKE_BUILD_TYPE=Debug -DBBL_INTERNAL_TESTING=1)
222-
else
223-
BUILD_ARGS+=(-DBBL_RELEASE_TO_PUBLIC=1 -DBBL_INTERNAL_TESTING=0)
225+
if [[ $BUILD_CONFIG != Release ]] ; then
226+
BUILD_ARGS+=(-DCMAKE_BUILD_TYPE="${BUILD_CONFIG}")
224227
fi
225228
if [[ -n "${BUILD_TESTS}" ]] ; then
226229
BUILD_ARGS+=(-DBUILD_TESTS=ON)
@@ -229,43 +232,30 @@ if [[ -n "${BUILD_ORCA}" ]] ; then
229232
BUILD_ARGS+=(-DORCA_UPDATER_SIG_KEY="${ORCA_UPDATER_SIG_KEY}")
230233
fi
231234

232-
echo "Configuring OrcaSlicer..."
233-
set -x
234-
cmake -S . -B build "${CMAKE_C_CXX_COMPILER_CLANG[@]}" "${CMAKE_LLD_LINKER_ARGS[@]}" -G "Ninja Multi-Config" \
235-
-DSLIC3R_PCH="${SLIC3R_PRECOMPILED_HEADERS}" \
236-
-DCMAKE_PREFIX_PATH="${SCRIPT_PATH}/deps/build/destdir/usr/local" \
237-
-DSLIC3R_STATIC=1 \
238-
-DORCA_TOOLS=ON \
239-
"${COLORED_OUTPUT}" \
240-
"${BUILD_ARGS[@]}"
241-
set +x
235+
print_and_run cmake -S . -B $BUILD_DIR "${CMAKE_C_CXX_COMPILER_CLANG[@]}" "${CMAKE_LLD_LINKER_ARGS[@]}" -G "Ninja Multi-Config" \
236+
-DSLIC3R_PCH=${SLIC3R_PRECOMPILED_HEADERS} \
237+
-DORCA_TOOLS=ON \
238+
"${COLORED_OUTPUT}" \
239+
"${BUILD_ARGS[@]}"
242240
echo "done"
243241
echo "Building OrcaSlicer ..."
244-
if [[ -n "${BUILD_DEBUG}" ]] ; then
245-
cmake --build build --config Debug --target OrcaSlicer
246-
else
247-
cmake --build build --config Release --target OrcaSlicer
248-
fi
242+
print_and_run cmake --build $BUILD_DIR --config "${BUILD_CONFIG}" --target OrcaSlicer
249243
echo "Building OrcaSlicer_profile_validator .."
250-
if [[ -n "${BUILD_DEBUG}" ]] ; then
251-
cmake --build build --config Debug --target OrcaSlicer_profile_validator
252-
else
253-
cmake --build build --config Release --target OrcaSlicer_profile_validator
254-
fi
244+
print_and_run cmake --build $BUILD_DIR --config "${BUILD_CONFIG}" --target OrcaSlicer_profile_validator
255245
./scripts/run_gettext.sh
256246
echo "done"
257247
fi
258248

259249
if [[ -n "${BUILD_IMAGE}" || -n "${BUILD_ORCA}" ]] ; then
260-
pushd build > /dev/null
250+
pushd $BUILD_DIR > /dev/null
261251
echo "[9/9] Generating Linux app..."
262252
build_linux_image="./src/build_linux_image.sh"
263253
if [[ -e ${build_linux_image} ]] ; then
264254
extra_script_args=""
265255
if [[ -n "${BUILD_IMAGE}" ]] ; then
266256
extra_script_args="-i"
267257
fi
268-
${build_linux_image} ${extra_script_args}
258+
print_and_run ${build_linux_image} ${extra_script_args}
269259

270260
echo "done"
271261
fi

0 commit comments

Comments
 (0)