Skip to content

Commit 68adb54

Browse files
authored
Halt on errors in build_lib.sh for Catapult, Symbolic and Vivado Accelerator. (#1483)
"set -e" has been already added for other backends. It allows to print compilations errors, e.g.: firmware/myproject.h:5:10: fatal error: ac_fixed.h: No such file or directory 5 | #include <ac_fixed.h> instead of ignoring them and crashing later, e.g.: firmware/myproject-0b348075.so: cannot open shared object file: No such file or directory
1 parent b2184c3 commit 68adb54

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

hls4ml/templates/catapult/build_lib.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -e
23

34
CC=g++
45
CFLAGS="-O3 -fPIC -std=c++11"

hls4ml/templates/symbolic/build_lib.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -e
23

34
CC=g++
45
CFLAGS="-O3 -fPIC -std=c++11"

hls4ml/templates/vivado_accelerator/build_lib.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -e
23

34
CC=g++
45
CFLAGS="-O3 -fPIC -std=c++11"

0 commit comments

Comments
 (0)