aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorlawl <github@dumbinter.net>2021-05-20 15:04:40 +0200
committerlawl <github@dumbinter.net>2021-05-20 15:04:40 +0200
commitc2bfe0202f5c58e35700925f6bbf5bafe613d509 (patch)
tree8e332e00b5078885af3039bf14e02259acd92051 /Makefile
parenta57cc201100aa58ca06704afb10d416cb87750e3 (diff)
downloadnoisetorch-c2bfe0202f5c58e35700925f6bbf5bafe613d509.tar.gz
noisetorch-c2bfe0202f5c58e35700925f6bbf5bafe613d509.zip
Temporarily force clang if available
GCC10 seems to refuse to link libm. GCC11 and clang seem to work fine.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1801e1e..a7e70d5 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,9 @@ UPDATE_URL=https://noisetorch.epicgamer.org
UPDATE_PUBKEY=3mL+rBi4yBZ1wGimQ/oSQCjxELzgTh+673H4JdzQBOk=
VERSION := $(shell git describe --tags)
+
+CLANG := $(shell which clang)
+
dev: rnnoise
mkdir -p bin/
go generate
@@ -27,6 +30,14 @@ release: rnnoise
go run scripts/signer.go -s
git describe --tags > bin/version.txt
rnnoise:
+ # For some reason gcc10 refuses to link libm
+ # gcc11 seems to work. Temporarily force clang
+ # if available until i can fix this properly
+ifdef CLANG
+ cd c/ladspa; \
+ CC=clang make
+else
cd c/ladspa; \
make
+endif