aboutsummaryrefslogtreecommitdiff
path: root/aberth/Makefile
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2019-04-20 21:15:46 +0200
committertomsmeding <tom.smeding@gmail.com>2019-04-20 21:16:10 +0200
commit284ce56948aae60134a1073c6499c7fb97ffb326 (patch)
tree174a34d94072f4ee819a89101ef6ff182e5bcf4b /aberth/Makefile
parentccade8e6ed96fb48b329d22aaa4c8d0826b3c8d1 (diff)
More reorganisation
Diffstat (limited to 'aberth/Makefile')
-rw-r--r--aberth/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/aberth/Makefile b/aberth/Makefile
index 99f0e16..cd59309 100644
--- a/aberth/Makefile
+++ b/aberth/Makefile
@@ -1,6 +1,6 @@
CXX = g++
-CXXFLAGS = -Wall -Wextra -std=c++17 -fwrapv $(OPTFLAGS)
-OPTFLAGS = -O3 -ffast-math -march=native -mtune=native
+CXXFLAGS = -Wall -Wextra -std=c++17 $(OPTFLAGS)
+OPTFLAGS = -O3 -ffast-math -march=native -mtune=native -flto
LDFLAGS = -pthread
ifeq ($(shell uname),Darwin)
LDFLAGS += -framework OpenCL
@@ -24,7 +24,7 @@ remake: clean
aberth: $(OBJECTS) aberth_kernel.o ../lodepng.o
- $(CXX) -o $@ $^ $(LDFLAGS)
+ $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
aberth_kernel.h: aberth_kernel.fut
futhark opencl --library $^