Skip to content

Commit 50ad0ff

Browse files
committed
Work around yosys-slang not building without .git
Addresses the following from the build of Docker image: 17:55:26 #22 299.6 fatal: not a git repository: /OpenROAD-flow-scripts/tools/yosys-slang/../../.git/modules/tools/yosys-slang 17:55:26 #22 299.6 CMake Error at cmake/GitRevision.cmake:4 (execute_process): 17:55:26 #22 299.6 execute_process failed command indexes: 17:55:26 #22 299.6 17:55:26 #22 299.6 1: "Child return code: 128" Signed-off-by: Martin Povišer <[email protected]>
1 parent e6ddecf commit 50ad0ff

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)