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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
--- Makefile.orig 2025-11-28 15:27:50 UTC
+++ Makefile
@@ -45,8 +45,8 @@ endif
#
# keep standard at C11 and C++17
-CFLAGS =
-CXXFLAGS =
+CFLAGS = $(PRESET_CFLAGS)
+CXXFLAGS = $(PRESET_CXXFLAGS)
ifdef KCPP_DEBUG
CFLAGS = -g -O0
CXXFLAGS = -g -O0
@@ -178,10 +178,10 @@ else
endif # LLAMA_NOAVX2
endif # LLAMA_NOAVX1
else
-CFLAGS += -march=native -mtune=native
-SIMPLECFLAGS += -march=native -mtune=native
-SIMPLERCFLAGS += -march=native -mtune=native
-FULLCFLAGS += -march=native -mtune=native
+#CFLAGS += -march=native -mtune=native
+#SIMPLECFLAGS += -march=native -mtune=native
+#SIMPLERCFLAGS += -march=native -mtune=native
+#FULLCFLAGS += -march=native -mtune=native
endif # LLAMA_PORTABLE
endif # if x86
@@ -251,7 +251,7 @@ else
endif
else
-NVCCFLAGS += -arch=native
+#NVCCFLAGS += -arch=native
endif # LLAMA_PORTABLE
ifdef LLAMA_CUDA_CCBIN
@@ -368,15 +368,15 @@ ifneq ($(findstring clang, $(CCV)), )
# sve is cooked on termux so we are disabling it
ifeq ($(UNAME_O), Android)
ifneq ($(findstring clang, $(CCV)), )
-CFLAGS += -mcpu=native+nosve
-CXXFLAGS += -mcpu=native+nosve
+#CFLAGS += -mcpu=native+nosve
+#CXXFLAGS += -mcpu=native+nosve
else
-CFLAGS += -mcpu=native
-CXXFLAGS += -mcpu=native
+#CFLAGS += -mcpu=native
+#CXXFLAGS += -mcpu=native
endif
else
-CFLAGS += -mcpu=native
-CXXFLAGS += -mcpu=native
+#CFLAGS += -mcpu=native
+#CXXFLAGS += -mcpu=native
endif
endif
endif
|