From cd9e83dd8d442d1328f61efe9a2f6b4166769ef5 Mon Sep 17 00:00:00 2001 From: In-line Date: Mon, 10 Jul 2017 22:00:09 +0400 Subject: [PATCH] Use mtune=generic instead of march for GCC --- rehlds/build.gradle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rehlds/build.gradle b/rehlds/build.gradle index a406536..9761936 100644 --- a/rehlds/build.gradle +++ b/rehlds/build.gradle @@ -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' }