Remove explicit -msse2 flags (and some other minor things)

-msse2 is passed by default in //build's gn setup (even -mssse3 now: https://chromium-review.googlesource.com/c/chromium/src/+/2311044), so there's no need to pass this explicitly. Also remove some other things that are already set elsewhere. No intended behavior change. Bug: chromium:1220175 Change-Id: Id49540d17e21362e5f57156b47cf49a5534d89af Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/55610Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarNico Weber <thakis@chromium.org> Commit-Queue: Nico Weber <thakis@chromium.org>
parent b45ad7a3
......@@ -83,7 +83,6 @@ config("swiftshader_config") {
} else if (current_cpu == "x86") { # 32 bit version
cflags += [
"-m32",
"-msse2",
"-mfpmath=sse",
"-march=pentium4",
"-mtune=generic",
......
......@@ -21,8 +21,6 @@ config("swiftshader_common_private_config") {
"/wd4201", # nameless struct/union
"/wd5030", # attribute is not recognized
]
} else if (current_cpu == "x86" || current_cpu == "x64") {
cflags = [ "-msse2" ]
}
}
......
......@@ -29,10 +29,6 @@ config("swiftshader_main_private_config") {
"-Wno-sign-compare",
]
}
} else if (current_cpu == "x86" || current_cpu == "x64") {
cflags = [ "-msse2" ]
defines =
[ "NO_SANITIZE_FUNCTION=__attribute__((no_sanitize(\"function\")))" ]
}
}
......
......@@ -26,14 +26,6 @@ config("swiftshader_llvm_reactor_private_config") {
]
} else {
cflags = [ "-Wno-unused-local-typedef" ]
defines = [
"__STDC_CONSTANT_MACROS",
"__STDC_LIMIT_MACROS",
]
if (current_cpu == "x86" || current_cpu == "x64") {
cflags += [ "-msse2" ]
}
}
}
......
......@@ -23,10 +23,7 @@ config("swiftshader_renderer_private_config") {
"/wd5030", # attribute is not recognized
]
} else if (current_cpu == "x86" || current_cpu == "x64") {
cflags = [
"-msse2",
"-Wno-sign-compare",
]
cflags = [ "-Wno-sign-compare" ]
}
}
......
......@@ -70,9 +70,6 @@ config("swiftshader_llvm_private_config") {
"-Wno-unused-result",
"-Wno-unused-variable",
]
if (current_cpu == "x86" || current_cpu == "x64") {
cflags += [ "-msse2" ]
}
}
defines = [
......
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