Skip to content

Commit 8692269

Browse files
committed
build: fail early on OpenROAD
Most setup errors in OpenROAD will be in relation to OpenROAD, so build yosys dependency after OpenROAD works Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 10cf974 commit 8692269

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build_openroad.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ __local_build()
237237
set -u
238238
fi
239239

240+
echo "[INFO FLW-0018] Compiling OpenROAD."
241+
eval ${NICE} ./tools/OpenROAD/etc/Build.sh -dir="$DIR/tools/OpenROAD/build" -threads=${PROC} -cmake=\'${OPENROAD_APP_ARGS}\'
242+
${NICE} cmake --build tools/OpenROAD/build --target install -j "${PROC}"
243+
240244
YOSYS_ABC_PATH=tools/yosys/abc
241245
if [[ -d "${YOSYS_ABC_PATH}/.git" ]]; then
242246
# update indexes to make sure git diff-index uses correct data
@@ -250,9 +254,6 @@ __local_build()
250254
# CMAKE_FLAGS added to work around yosys-slang#141 (unable to build outside of git checkout)
251255
${NICE} make install -C tools/yosys-slang -j "${PROC}" YOSYS_PREFIX="${INSTALL_PATH}/yosys/bin/" CMAKE_FLAGS="-DYOSYS_SLANG_REVISION=unknown -DSLANG_REVISION=unknown"
252256

253-
echo "[INFO FLW-0018] Compiling OpenROAD."
254-
eval ${NICE} ./tools/OpenROAD/etc/Build.sh -dir="$DIR/tools/OpenROAD/build" -threads=${PROC} -cmake=\'${OPENROAD_APP_ARGS}\'
255-
${NICE} cmake --build tools/OpenROAD/build --target install -j "${PROC}"
256257
}
257258

258259
__update_openroad_app_remote()

0 commit comments

Comments
 (0)