Initial Commit

This commit is contained in:
2024-12-28 11:44:35 +13:00
commit 549b251bce
4 changed files with 25 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.vscode/

3
bin/clang Normal file
View File

@@ -0,0 +1,3 @@
#! /bin/sh
"$ZIG_PATH"/zig cc "$@"

3
bin/clang++ Normal file
View File

@@ -0,0 +1,3 @@
#! /bin/sh
"$ZIG_PATH"/zig c++ "$@"

18
install.sh Normal file
View File

@@ -0,0 +1,18 @@
#! /bin/sh
if [ $# -eq 0 ]
then
echo "No arguments supplied"
fi
PREFIX="$1"
if [ ! -d "$PREFIX" ]; then
echo "Error: The path '$PREFIX' does not exist or is not a directory."
exit 1
fi
SCRIPT_DIR=$(dirname "$0")
cp "$SCRIPT_DIR/bin/clang" "$PREFIX/bin/clang"
cp "$SCRIPT_DIR/bin/clang++" "$PREFIX/bin/clang++"