~andrewrk/ziglang

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] remove bash dependency (verified with shellcheck)

Details
Message ID
<20201016222837.16089-1-noam@pixelhero.dev>
DKIM signature
missing
Download raw message
Patch: +16 -4
---
 build | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/build b/build
index 01df883a4..1d646840b 100755
--- a/build
@@ -13,10 +13,22 @@ TARGET_OS_AND_ABI=${TARGET#*-} # Example: linux-gnu

# Here we map the OS from the target triple to the value that CMake expects.
TARGET_OS_CMAKE=${TARGET_OS_AND_ABI%-*} # Example: linux
TARGET_OS_CMAKE="${TARGET_OS_CMAKE/macos/Darwin}"
TARGET_OS_CMAKE="${TARGET_OS_CMAKE/freebsd/FreeBSD}"
TARGET_OS_CMAKE="${TARGET_OS_CMAKE/windows/Windows}"
TARGET_OS_CMAKE="${TARGET_OS_CMAKE/linux/Linux}"
if [ "$TARGET_OS_CMAKE" = "macos" ]
then
	TARGET_OS_CMAKE=Darwin
fi
if [ "$TARGET_OS_CMAKE" = "freebsd" ]
then
	TARGET_OS_CMAKE=FreeBSD
fi
if [ "$TARGET_OS_CMAKE" = "windows" ]
then
	TARGET_OS_CMAKE=Windows
fi
if [ "$TARGET_OS_CMAKE" = "linux" ]
then
	TARGET_OS_CMAKE=Linux
fi

# First build the libraries for Zig to link against, as well as native `llvm-tblgen`.
mkdir -p "$ROOTDIR/out/build-llvm-host"
-- 
2.28.0
Reply to thread Export thread (mbox)