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/+/55649
Tested-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Nico Weber <thakis@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Commit-Queue: Nico Weber <thakis@chromium.org>
diff --git a/BUILD.gn b/BUILD.gn
index 9fb4254..8cd9cba 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -58,22 +58,6 @@
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")) {