Skip to content

Commit 69c546c

Browse files
noam cohennanocoh
authored andcommitted
kf bin deps fix + 0 count case
Signed-off-by: Noam Cohen <noam.chn1@gmail.com>
1 parent 5d04268 commit 69c546c

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

‎build_openroad.sh‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,15 +305,19 @@ __local_build()
305305
cmake .. -DCMAKE_BUILD_TYPE=Release \
306306
-DCMAKE_CXX_FLAGS_RELEASE="-Ofast -march=native -ffast-math -flto" \
307307
-DCMAKE_EXE_LINKER_FLAGS="-flto" \
308-
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON \
308+
-DCMAKE_BUILD_RPATH='@executable_path/../lib' \
309309
-DCMAKE_INSTALL_RPATH='@executable_path/../lib' \
310+
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
311+
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF \
310312
-DCMAKE_INSTALL_PREFIX="${INSTALL_PATH}/kepler-formal"
311313
else
312314
cmake .. -DCMAKE_BUILD_TYPE=Release \
313315
-DCMAKE_CXX_FLAGS_RELEASE="-Ofast -march=native -ffast-math -flto" \
314316
-DCMAKE_EXE_LINKER_FLAGS="-flto" \
315-
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON \
317+
-DCMAKE_BUILD_RPATH='\$ORIGIN/../lib' \
316318
-DCMAKE_INSTALL_RPATH='\$ORIGIN/../lib' \
319+
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
320+
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF \
317321
-DCMAKE_INSTALL_PREFIX="${INSTALL_PATH}/kepler-formal"
318322
fi
319323

‎flow/scripts/lec_check.tcl‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ proc run_lec_test { step file1 file2 } {
2424
write_lec_script $step $file1 $file2
2525
# tclint-disable-next-line command-args
2626
eval exec kepler-formal --config $::env(OBJECTS_DIR)/lec_test_${step}.yml
27-
set count \
28-
[exec grep -c "Found difference" $::env(LOG_DIR)/lec_check_${step}.log]
29-
if { $count > 0 } {
30-
error "Repair timing output failed lec test"
31-
} else {
32-
puts "Repair timing output passed lec test"
27+
try {
28+
set count [exec grep -c "Found difference" $::env(LOG_DIR)/lec_check_${step}.log]]
29+
} trap CHILDSTATUS {results options} {
30+
# This block executes if grep returns a non-zero exit code
31+
set count 0
3332
}
3433
}
3534

‎flow/scripts/load.tcl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,4 @@ proc run_equivalence_test { } {
115115
} else {
116116
puts "Repair timing output passed equivalence test"
117117
}
118-
}
118+
}

0 commit comments

Comments
 (0)