1 |
If I understand correctly, |
2 |
https://wiki.gentoo.org/wiki/Distcc#CFLAGS_and_CXXFLAGS is saying that |
3 |
CFLAGS should be set to the output of gcc -v -E -x c -march=native |
4 |
-mtune=native - < /dev/null 2>&1 | grep cc1 | perl -pe 's/^.* - //g;' |
5 |
|
6 |
Checking the output; |
7 |
$ gcc -v -E -x c -march=native -mtune=native - < /dev/null 2>&1 | grep cc1 |
8 |
| perl -pe 's/^.* - //g;' |
9 |
-march=skylake -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a |
10 |
-mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mfma |
11 |
-mno-fma4 -mno-xop -mbmi -msgx -mbmi2 -mno-pconfig -mno-wbnoinvd -mno-tbm |
12 |
-mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrtm -mhle -mrdrnd -mf16c |
13 |
-mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mno-avx512f |
14 |
-mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mclflushopt |
15 |
-mxsavec -mxsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma |
16 |
-mno-avx512vbmi -mno-avx5124fmaps -mno-avx5124vnniw -mno-clwb -mno-mwaitx |
17 |
-mno-clzero -mno-pku -mno-rdpid -mno-gfni -mno-shstk -mno-avx512vbmi2 |
18 |
-mno-avx512vnni -mno-vaes -mno-vpclmulqdq -mno-avx512bitalg -mno-movdiri |
19 |
-mno-movdir64b -mno-waitpkg -mno-cldemote -mno-ptwrite --param |
20 |
l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 |
21 |
-mtune=skylake |
22 |
|
23 |
AFAIK the -march=skylake implies all the other -m options, so adding them |
24 |
to CFLAGS is redundant, so I am thinking i will set |
25 |
CFLAGS="-march=skylake --param l1-cache-size=32 --param |
26 |
l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=skylake" |
27 |
with the mtune option remaining there for any ebuilds that strip march. |
28 |
|
29 |
Is that sensible/correct? |