OSDN Git Service

Remove /RTC1 for Windows Debug Builds
authorRobert Liao <robliao@chromium.org>
Mon, 14 Aug 2017 17:51:58 +0000 (10:51 -0700)
committerRobert Liao <robliao@chromium.org>
Mon, 14 Aug 2017 19:24:44 +0000 (19:24 +0000)
SwiftShader requests the optimized flags for debug buidls for
performance. This leads to an incompatible use of /O1 and /RTC1.

BUG=chromium:755195

Change-Id: I53b6f99a67d0b8d5fc5932b677ee278aca300702
Reviewed-on: https://swiftshader-review.googlesource.com/11594
Reviewed-by: Alexis H├ętu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Robert Liao <robliao@chromium.org>
BUILD.gn

index f6c0699..39f72cb 100644 (file)
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -33,9 +33,7 @@ config("swiftshader_config") {
       "NO_SANITIZE_FUNCTION=",
     ]
 
-    if (is_debug) {
-      cflags += [ "/RTC1" ]  # Run-Time Error Checks
-    } else {
+    if (!is_debug) {
       defines += [ "ANGLE_DISABLE_TRACE" ]
     }
   } else {