OSDN Git Service

Always produce an optimized library on Chromium
authorAlexis Hetu <sugoi@google.com>
Thu, 10 Aug 2017 17:52:42 +0000 (13:52 -0400)
committerAlexis Hétu <sugoi@google.com>
Thu, 10 Aug 2017 18:32:17 +0000 (18:32 +0000)
commit5bf72ee3fc17b345d88e5a75b369f9b52517ec44
treef2c96eaa3511fa59ac98f3af87cb578a78169fcd
parentbf1307b32373ed7a005d307f51b94f87be9b9755
Always produce an optimized library on Chromium

The SwiftShader library, when used to render Layout Tests in Debug,
causes too many timeouts. For that reason, we need the Debug version
of the library have better overall performance. In Debug, the
"default_optimization" defaults to "no_optimization". See:
https://cs.chromium.org/chromium/src/build/config/compiler/BUILD.gn?l=1698
In Release, "default_optimization" defaults to "optimize", so in
order to at least use the same optimization flags in both case, we
replace "default_optimization" by "optimize" in Debug.

The Win 7 (dbg) bot ran successfully with this change (the
telemetry_tests were failing when building the full Release version
of the SwiftShader library with the Debug version of Chromium).

Change-Id: I3529160b539319e26f9898d2588536d378c3ee01
Reviewed-on: https://swiftshader-review.googlesource.com/11469
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Alexis Hétu <sugoi@google.com>
src/swiftshader.gni