From 693ce7309a10471d3cef5d04de6fb50c0f709df2 Mon Sep 17 00:00:00 2001 From: Eugene Feinberg Date: Sat, 13 Apr 2024 03:06:57 +0000 Subject: [PATCH 1/2] Add error prop to generated vcs compile script --- src/script_fmt/vcs_sh.tera | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/script_fmt/vcs_sh.tera b/src/script_fmt/vcs_sh.tera index 6479db1e..4c9a07b5 100644 --- a/src/script_fmt/vcs_sh.tera +++ b/src/script_fmt/vcs_sh.tera @@ -1,5 +1,8 @@ #!/usr/bin/env bash # {{ HEADER_AUTOGEN }} + +# Set propagation of error to exit on first error +set -e ROOT="{{ root }}" {% if compilation_mode == 'separate' %}{% for group in srcs %} {% if group.file_type == 'verilog' %}{{ vlogan_bin }} -sverilog \ From 1765b474561f2f6bfadc1fb24989ebadad0714bf Mon Sep 17 00:00:00 2001 From: Eugene Feinberg Date: Wed, 17 Apr 2024 06:42:21 -0700 Subject: [PATCH 2/2] Update src/script_fmt/vcs_sh.tera Co-authored-by: Michael Rogenmoser --- src/script_fmt/vcs_sh.tera | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script_fmt/vcs_sh.tera b/src/script_fmt/vcs_sh.tera index 4c9a07b5..1da2a1cc 100644 --- a/src/script_fmt/vcs_sh.tera +++ b/src/script_fmt/vcs_sh.tera @@ -1,8 +1,8 @@ #!/usr/bin/env bash # {{ HEADER_AUTOGEN }} - -# Set propagation of error to exit on first error +{% if abort_on_error %}# Set propagation of error to exit on first error set -e +{% endif %} ROOT="{{ root }}" {% if compilation_mode == 'separate' %}{% for group in srcs %} {% if group.file_type == 'verilog' %}{{ vlogan_bin }} -sverilog \