From 9ee5767458aaa33cc98aa4773d9c91ee293dfdcf Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Thu, 16 Nov 2023 10:48:48 -0600 Subject: [PATCH] compilation cleanup --- build.sh | 10 ++++++---- shared/include/bh.h | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index 85db1bbb..e77e0358 100755 --- a/build.sh +++ b/build.sh @@ -14,9 +14,11 @@ compile_all() { ./build.sh $1 cd .. - cd runtime - ./build.sh $1 - cd .. + if [ ! -z ${ONYX_RUNTIME_LIBRARY+x} ]; then + cd runtime + ./build.sh $1 + cd .. + fi } package_all() { @@ -25,7 +27,7 @@ package_all() { echo "Installing on '$(uname -a)'" echo "Installing core libs" [ -d "$DIST_DIR/core" ] && rm -r "$DIST_DIR/core" - cp -r ./core/ "$DIST_DIR" + cp -r ./core "$DIST_DIR/core" echo "Installing core tools" mkdir -p "$DIST_DIR/bin" diff --git a/shared/include/bh.h b/shared/include/bh.h index bb5bf67f..1aa32054 100644 --- a/shared/include/bh.h +++ b/shared/include/bh.h @@ -1859,7 +1859,7 @@ b32 bh_file_write(bh_file* file, void* buffer, isize buff_size) { } void bh_file_flush(bh_file* file) { - #ifdef _BH_LINUX || defined (_BH_DARWIN) + #if defined(_BH_LINUX) || defined(_BH_DARWIN) fdatasync(file->fd); #endif } -- 2.25.1