2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-16 08:38:10 +03:00

Merge pull request #492 from In-line/patch-6

Use mtune=generic instead of march for GCC
This commit is contained in:
theAsmodai 2017-07-11 15:06:35 +03:00 committed by GitHub
commit 195a436fa3

View File

@ -162,8 +162,9 @@ void setupToolchain(NativeBinarySpec b) {
'_vsnprintf': 'vsnprintf', '_vsnprintf': 'vsnprintf',
]) ])
if (useGcc) { if (useGcc) {
// MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AES and PCLMUL instruction set support. // Produce code optimized for the most common IA32/AMD64/EM64T processors.
cfg.compilerOptions.args '-march=sandybridge', '-Wno-write-strings' // As new processors are deployed in the marketplace, the behavior of this option will change.
cfg.compilerOptions.args '-mtune=generic', '-Wno-write-strings'
} else { } else {
cfg.compilerOptions.args '-Qoption,cpp,--treat_func_as_string_literal_cpp', '-fno-rtti' cfg.compilerOptions.args '-Qoption,cpp,--treat_func_as_string_literal_cpp', '-fno-rtti'
} }