diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-08-14 01:30:08 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | 664fbc5f5c947aaa04bbbf132d9c935959e34a9c (patch) | |
tree | fb25c4d6b8ccc5c6c7d02ad1170947096ff684e9 /build.sh | |
parent | ea97370f973374f863e4296c2bb872be8b5235a3 (diff) |
Move program code generation and execution out of program (make it generic)
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -60,7 +60,7 @@ build_compile_commands() { build_test() { CFLAGS="$CFLAGS -g -O0 -DDEBUG" - BUILD_ARGS="$source_files $CFLAGS $LIBS -shared -fpic -o libamalgam.so" + BUILD_ARGS="$source_files $CFLAGS $LIBS -shared -fPIC -o libamalgam.so" set -x time $CC $BUILD_ARGS if [ -n "$SCAN_BUILD" ]; then @@ -80,7 +80,7 @@ build_test() { build_release() { CFLAGS="$CFLAGS -O2 -DNDEBUG -s" - BUILD_ARGS="$source_files $CFLAGS $LIBS -shared -fpic -o libamalgam.so" + BUILD_ARGS="$source_files $CFLAGS $LIBS -shared -fPIC -o libamalgam.so" set -x time $CC $BUILD_ARGS if [ -n "$SCAN_BUILD" ]; then @@ -94,6 +94,7 @@ build_release() { case "$1" in "test") build_test + ./tools/highlevel_c.py ;; "release") build_release |