aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriceyrazor <iceyrazor@mailfence.com>2026-10-08 04:22:29 -0500
committericeyrazor <iceyrazor@mailfence.com>2026-10-08 04:22:29 -0500
commita260faa5cc35cb6fd656e49a6235a147d80d863f (patch)
tree34cde12a5711e775b545b6eaa433486ae1cf6bf0
parent2780e8a5796d217e651dc4f44b628a9a0e247852 (diff)
added CC variable
-rw-r--r--README.md3
-rwxr-xr-xbuild.sh5
2 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index 62f3171..7b8dd2b 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@ This is made for me so its complicated to use.
- linux (I'm not making a windows version)
- glibc
-- clang
+- clang | gcc
- [tinyosc](https://github.com/mhroth/tinyosc)
- playerctl (for now playing status)
@@ -17,6 +17,7 @@ This is made for me so its complicated to use.
- ``git clone --recursive repo`` or.
- ``git submodule init`` then ``git submodule update`` or
- download tinyosc and put it in libs.
+- if you dont have clang and have gcc edit ``build.sh`` and set ``CC`` to gcc
- run ``build.sh`` once or ``cp src/config.def.c src/config.c``.
- edit ``src/config.c`` to your liking.
- run ``build.sh``.
diff --git a/build.sh b/build.sh
index d5bae99..1322453 100755
--- a/build.sh
+++ b/build.sh
@@ -2,6 +2,7 @@
DEBUG=""
LIB="-I libs/tinyosc"
+[ -z "$CC" ] && CC="clang"
mkdir -p bin
@@ -17,5 +18,5 @@ shift $((OPTIND-1))
printf "\n\nmaking project\n"
[ ! -e "src/config.c" ] && cp src/config.def.c src/config.c;
-clang -o bin/chat-loop src/main.c $LIB -lm $DEBUG
-clang -o bin/type src/type.c $LIB -lm $DEBUG
+$CC -o bin/chat-loop src/main.c $LIB -lm $DEBUG
+$CC -o bin/type src/type.c $LIB -lm $DEBUG