From 62998924a840cae3f7ff193e514eda8589dc6df2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20P=C3=B6chtrager?= Date: Tue, 18 Feb 2020 15:35:32 +0100 Subject: [PATCH] Fix for #211 --- build.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/build.sh b/build.sh index 6fbfb14..ccf1887 100755 --- a/build.sh +++ b/build.sh @@ -184,14 +184,12 @@ fi pushd $SDK_DIR/MacOSX$SDK_VERSION.sdk &>/dev/null set +e -if [ $PLATFORM == "FreeBSD" ] || [ $PLATFORM == "OpenBSD" ]; then - files=$(echo $SDK_DIR/MacOSX$SDK_VERSION.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/std*.h) - for file in $files; do - rm -f usr/include/$(basename $file) - cp $file usr/include - done - cp -f $BASE_DIR/oclang/quirks/tgmath.h usr/include -fi +files=$(echo $SDK_DIR/MacOSX$SDK_VERSION.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/std*.h) +for file in $files; do + rm -f usr/include/$(basename $file) + cp $file usr/include +done +cp -f $BASE_DIR/oclang/quirks/tgmath.h usr/include if [ ! -f "usr/include/float.h" ]; then cp -f $BASE_DIR/oclang/quirks/float.h usr/include fi