Skip to content

Commit 04fd4f7

Browse files
committed
Fix empty-options arg regression in build_openroad.sh docker build.
After the WITH_VERIFIC guard fix, `options` is empty when --with-verific is not passed, and the quoted "${options}" expansion sends one empty positional argument to DockerHelper.sh, whose catch-all aborts with `unknown option: `. Switch to a Bash array so the empty case expands to zero args. Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
1 parent f5f4858 commit 04fd4f7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎build_openroad.sh‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,13 @@ __docker_build()
237237
cp .dockerignore{,.bak}
238238
sed -i '/flow\/platforms/d' .dockerignore
239239
fi
240-
options=""
241-
if [ ${WITH_VERIFIC} -eq 1 ]; then
240+
local options=()
241+
if [ "${WITH_VERIFIC}" -eq 1 ]; then
242242
cp -r "${VERIFIC_SRC}" tools/verific
243-
options="-buildArgs=--build-arg verificPath=tools/verific"
243+
options=("-buildArgs=--build-arg verificPath=tools/verific")
244244
fi
245245
./etc/DockerHelper.sh create -target=dev -os="${DOCKER_OS_NAME}" -threads="${PROC}"
246-
./etc/DockerHelper.sh create -target=builder -os="${DOCKER_OS_NAME}" -threads="${PROC}" "${options}"
246+
./etc/DockerHelper.sh create -target=builder -os="${DOCKER_OS_NAME}" -threads="${PROC}" "${options[@]}"
247247
rm -rf tools/verific
248248
if [ ! -z "${DOCKER_COPY_PLATFORMS+x}" ]; then
249249
mv .dockerignore{.bak,}

0 commit comments

Comments
 (0)