diff options
author | Ryan Hill <rhill@gentoo.org> | 2008-05-26 01:34:38 +0000 |
---|---|---|
committer | Ryan Hill <rhill@gentoo.org> | 2008-05-26 01:34:38 +0000 |
commit | 870c07f09ac3c310844ecb1c6aac35c65b62e161 (patch) | |
tree | 5c44300a2c9916a1fa41c688897c0eec4de2db48 /sys-devel/distcc/files | |
parent | Add custom-cpuopts use flag; add dxr2, dxr3 use flag, bug 223587 (diff) | |
download | historical-870c07f09ac3c310844ecb1c6aac35c65b62e161.tar.gz historical-870c07f09ac3c310844ecb1c6aac35c65b62e161.tar.bz2 historical-870c07f09ac3c310844ecb1c6aac35c65b62e161.zip |
Add patch to always run jobs containing -march=native locally. Bug
#223159.
Package-Manager: portage-2.2_pre7/cvs/Linux 2.6.25-gentoo-r3 Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz
Diffstat (limited to 'sys-devel/distcc/files')
-rw-r--r-- | sys-devel/distcc/files/distcc-march-native.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sys-devel/distcc/files/distcc-march-native.patch b/sys-devel/distcc/files/distcc-march-native.patch new file mode 100644 index 000000000000..a5c9bb2e4da1 --- /dev/null +++ b/sys-devel/distcc/files/distcc-march-native.patch @@ -0,0 +1,16 @@ +diff -ur distcc-2.18.3/src/arg.c distcc-modified/src/arg.c +--- distcc-2.18.3/src/arg.c 2004-11-30 13:13:53.000000000 +0100 ++++ distcc-modified/src/arg.c 2008-02-05 17:56:58.000000000 +0100 +@@ -171,6 +171,12 @@ + to distribute it even if we could. */ + rs_trace("%s implies -E (maybe) and must be local", a); + return EXIT_DISTCC_FAILED; ++ } else if (!strcmp(a, "-march=native")) { ++ rs_trace("-march=native generates code for local machine; must be local"); ++ return EXIT_DISTCC_FAILED; ++ } else if (!strcmp(a, "-mtune=native")) { ++ rs_trace("-mtune=native optimizes for local machine; must be local"); ++ return EXIT_DISTCC_FAILED; + } else if (str_startswith("-Wa,", a)) { + /* Look for assembler options that would produce output + * files and must be local. |