Remove x86/x64-specific arch flags

All but the mtune flags are set by //build/config/compiler/BUILD.gn already, and mtune is set to generic. No intended behavior change. Change-Id: Ic70460a1267dd6791fb1f6e108d7432cb9048f53 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/55649Tested-by: 's avatarNico Weber <thakis@chromium.org> Reviewed-by: 's avatarNico Weber <thakis@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Commit-Queue: Nico Weber <thakis@chromium.org>
parent d44b0b08
......@@ -58,22 +58,6 @@ config("swiftshader_config") {
cflags += [ "-Os" ]
}
if (current_cpu == "x64") { # 64 bit version
cflags += [
"-m64",
"-fPIC",
"-march=x86-64",
"-mtune=generic",
]
} else if (current_cpu == "x86") { # 32 bit version
cflags += [
"-m32",
"-mfpmath=sse",
"-march=pentium4",
"-mtune=generic",
]
}
if (is_linux || is_chromeos) {
# A bug in the gold linker prevents using ICF on 32-bit (crbug.com/729532)
if (use_gold && (current_cpu == "x86" || current_cpu == "mipsel")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment