mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-29 15:08:07 +03:00
Use mtune=generic instead of march for GCC
This commit is contained in:
parent
61952babd8
commit
cd9e83dd8d
@ -162,8 +162,9 @@ void setupToolchain(NativeBinarySpec b) {
|
||||
'_vsnprintf': 'vsnprintf',
|
||||
])
|
||||
if (useGcc) {
|
||||
// MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AES and PCLMUL instruction set support.
|
||||
cfg.compilerOptions.args '-march=sandybridge', '-Wno-write-strings'
|
||||
// Produce code optimized for the most common IA32/AMD64/EM64T processors.
|
||||
// As new processors are deployed in the marketplace, the behavior of this option will change.
|
||||
cfg.compilerOptions.args '-mtune=generic', '-Wno-write-strings'
|
||||
} else {
|
||||
cfg.compilerOptions.args '-Qoption,cpp,--treat_func_as_string_literal_cpp', '-fno-rtti'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user