Skip to content

Commit 6af18dc

Browse files
authored
Merge pull request #3139 from povik/yosys-slang-build-fix
Work around yosys-slang not building without `.git`
2 parents dc62720 + 50ad0ff commit 6af18dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build_openroad.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ __local_build()
247247
${NICE} make install -C tools/yosys -j "${PROC}" ${YOSYS_ARGS}
248248

249249
echo "[INFO FLW-0030] Compiling yosys-slang."
250-
${NICE} make install -C tools/yosys-slang -j "${PROC}" YOSYS_PREFIX="${INSTALL_PATH}/yosys/bin/"
250+
# CMAKE_FLAGS added to work around yosys-slang#141 (unable to build outside of git checkout)
251+
${NICE} make install -C tools/yosys-slang -j "${PROC}" YOSYS_PREFIX="${INSTALL_PATH}/yosys/bin/" CMAKE_FLAGS="-DYOSYS_SLANG_REVISION=unknown -DSLANG_REVISION=unknown"
251252

252253
echo "[INFO FLW-0018] Compiling OpenROAD."
253254
eval ${NICE} ./tools/OpenROAD/etc/Build.sh -dir="$DIR/tools/OpenROAD/build" -threads=${PROC} -cmake=\'${OPENROAD_APP_ARGS}\'

0 commit comments

Comments
 (0)