Share ANGLE_DISABLE_TRACE-setting code between win and non-win

No behavior change. Change-Id: Ibe79440616b7d37ba621b718c448bb9c6bad9b78 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/55631Tested-by: 's avatarNico Weber <thakis@chromium.org> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Commit-Queue: Nico Weber <thakis@chromium.org>
parent 6f0ce128
......@@ -21,6 +21,10 @@ import("src/Reactor/reactor.gni")
config("swiftshader_config") {
defines = []
if (!is_debug) {
defines += [ "ANGLE_DISABLE_TRACE" ]
}
if (is_win) {
defines += [
"_WINDLL",
......@@ -31,10 +35,6 @@ config("swiftshader_config") {
"_ENABLE_EXTENDED_ALIGNED_STORAGE",
]
if (!is_debug) {
defines += [ "ANGLE_DISABLE_TRACE" ]
}
# Diable some MSVC warnings.
if (!is_clang) {
cflags += [
......@@ -54,8 +54,6 @@ config("swiftshader_config") {
if (!is_debug) {
cflags += [ "-Os" ]
defines += [ "ANGLE_DISABLE_TRACE" ]
}
if (current_cpu == "x64") { # 64 bit version
......
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