-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathopt.patch
More file actions
27 lines (26 loc) · 608 Bytes
/
opt.patch
File metadata and controls
27 lines (26 loc) · 608 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/Makefile b/Makefile
index e3cd131..e41bdb6 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,22 @@ ifeq ($(CONFIG_NATIVE),true)
SHARED_FLAGS += -march=native
endif
+ifeq ($(CONFIG_X86_64),true)
+ SHARED_FLAGS += -march=x86-64
+endif
+
+ifeq ($(CONFIG_X86_64_V2),true)
+ SHARED_FLAGS += -march=x86-64-v2
+endif
+
+ifeq ($(CONFIG_X86_64_V3),true)
+ SHARED_FLAGS += -march=x86-64-v3
+endif
+
+ifeq ($(CONFIG_X86_64_V4),true)
+ SHARED_FLAGS += -march=x86-64-v4
+endif
+
ifeq ($(CONFIG_UBSAN),true)
SHARED_FLAGS += -fsanitize=undefined -fno-sanitize-recover=undefined
endif