aboutsummaryrefslogtreecommitdiff
path: root/aberth/Makefile
diff options
context:
space:
mode:
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 $^