From c7d6d33bfc2648e0700fb9b5dd1df15535abc174 Mon Sep 17 00:00:00 2001 From: Matt Liberty Date: Wed, 30 Sep 2026 06:25:34 +0000 Subject: [PATCH] build_openroad: stop passing -lto to OpenROAD's Build.sh Build.sh always uses --config=release, which already includes --config=opt. -lto added --config=opt a second time, so every compile got -O3 twice, which changed every action key. The Docker builder stage then missed the remote cache that OpenROAD CI fills with --config=ci and rebuilt OpenROAD from scratch. The binary is unchanged: it is still built with -O3 and ThinLTO. Signed-off-by: Matt Liberty --- build_openroad.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build_openroad.sh b/build_openroad.sh index 7a081712cd..9d6ee14c3f 100755 --- a/build_openroad.sh +++ b/build_openroad.sh @@ -251,13 +251,11 @@ echo "[INFO FLW-0028] Compiling with ${PROC} threads." # Only add install prefix variables after parsing arguments. YOSYS_ARGS+=" -DCMAKE_INSTALL_PREFIX=\"${INSTALL_PATH}/yosys\"" -# -lto selects Bazel --config=opt (-O3 and LTO). The default Bazel build is -# -O2 without LTO, which produces a slower binary with different QoR than the -# previous CMake RELEASE build. +# Build.sh always builds with Bazel --config=release, which includes +# --config=opt (-O3 and ThinLTO). OPENROAD_APP_ARGS=( "-prefix=${INSTALL_PATH}/OpenROAD" "-threads=${PROC}" - "-lto" ) __args_setup() {