commit efe64dea2c09f67442b71162184ee96a18370e0e
parent d5a51ed983d0c49f5c9f44a18f3eba6a053b19d4
Author: Markus Hunner <26381538+markhun@users.noreply.github.com>
Date: Sat, 30 Dec 2023 12:35:17 +0100
Makefile: Add -march=native -fwhole-program cflags
-march=native allows the compiler to apply optimizations specific to the
current machine architecture.
-fwhole-program allows the compiler to apply optimizations only possible
if the compiled code is not linked to other code.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -1,7 +1,7 @@
# Makefile settings
CC = cc
RM = rm -f
-CFLAGS =-Wall -O3 -DNDEBUG
+CFLAGS =-Wall -O3 -DNDEBUG -march=native -fwhole-program
# CFLAGS =-Wall -ggdb -O0 -fno-omit-frame-pointer
LD = cc
LDFLAGS =-g