summaryrefslogtreecommitdiff
blob: fe89637b61ccf207c895c01b2c4eaab90384104d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff -urN icecream.orig/client/arg.cpp icecream/client/arg.cpp
--- icecream.orig/client/arg.cpp
+++ icecream/client/arg.cpp
@@ -182,6 +182,12 @@
 #endif
                 always_local = true;
                 args.append(a, Arg_Local);
+            } else if (!strcmp(a, "-march=native") || !strcmp(a, "-mcpu=native") || !strcmp(a, "-mtune=native")) {
+#if CLIENT_DEBUG
+                log_info() << "-{march,mpcu,mtune}=native optimizes for local machine; must be local" << endl;
+#endif
+                always_local = true;
+                args.append(a, Arg_Local);
             } else if (!strcmp(a, "-c")) {
                 seen_c = true;
             } else if (str_startswith("-o", a)) {