aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-08-14 01:30:08 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commit664fbc5f5c947aaa04bbbf132d9c935959e34a9c (patch)
treefb25c4d6b8ccc5c6c7d02ad1170947096ff684e9 /build.sh
parentea97370f973374f863e4296c2bb872be8b5235a3 (diff)
Move program code generation and execution out of program (make it generic)
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 26edf31..07a4ee2 100755
--- a/build.sh
+++ b/build.sh
@@ -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