mirror of
https://github.com/verilator/verilator.git
synced 2025-01-19 21:04:03 +00:00
Fix docker exit status when Verilator fails, #2153.
This commit is contained in:
parent
81a63b0c7d
commit
8d3d185e3b
@ -9,6 +9,10 @@
|
|||||||
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
|
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
|
||||||
|
|
||||||
perl /usr/local/bin/verilator "$@"
|
perl /usr/local/bin/verilator "$@"
|
||||||
|
status=$?
|
||||||
|
if [ $status -ne 0 ]; then
|
||||||
|
exit $status
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if user set an obj_dir
|
# Check if user set an obj_dir
|
||||||
obj_dir=$(echo " $@" | grep -oP '\s--Mdir\s*\K\S+')
|
obj_dir=$(echo " $@" | grep -oP '\s--Mdir\s*\K\S+')
|
||||||
|
Loading…
Reference in New Issue
Block a user