1 |
dirtyepic 08/05/26 01:34:39 |
2 |
|
3 |
Added: distcc-march-native.patch |
4 |
Log: |
5 |
Add patch to always run jobs containing -march=native locally. Bug |
6 |
#223159. |
7 |
(Portage version: 2.2_pre7/cvs/Linux 2.6.25-gentoo-r3 Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sys-devel/distcc/files/distcc-march-native.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/files/distcc-march-native.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/files/distcc-march-native.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: distcc-march-native.patch |
16 |
=================================================================== |
17 |
diff -ur distcc-2.18.3/src/arg.c distcc-modified/src/arg.c |
18 |
--- distcc-2.18.3/src/arg.c 2004-11-30 13:13:53.000000000 +0100 |
19 |
+++ distcc-modified/src/arg.c 2008-02-05 17:56:58.000000000 +0100 |
20 |
@@ -171,6 +171,12 @@ |
21 |
to distribute it even if we could. */ |
22 |
rs_trace("%s implies -E (maybe) and must be local", a); |
23 |
return EXIT_DISTCC_FAILED; |
24 |
+ } else if (!strcmp(a, "-march=native")) { |
25 |
+ rs_trace("-march=native generates code for local machine; must be local"); |
26 |
+ return EXIT_DISTCC_FAILED; |
27 |
+ } else if (!strcmp(a, "-mtune=native")) { |
28 |
+ rs_trace("-mtune=native optimizes for local machine; must be local"); |
29 |
+ return EXIT_DISTCC_FAILED; |
30 |
} else if (str_startswith("-Wa,", a)) { |
31 |
/* Look for assembler options that would produce output |
32 |
* files and must be local. |
33 |
|
34 |
|
35 |
|
36 |
-- |
37 |
gentoo-commits@l.g.o mailing list |