mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-16 20:31:20 +00:00
Use Chromium's dcheck_always_on when available.
This will make GPU tests running on Chromium-based builders respect this configuration, which is important to have the same code run in Release and Debug builds on the GPU FYI waterfall. BUG=chromium:901830 Change-Id: Ia2f6f3585c4b6213fe7f55203c69d0ef4a620a67 Reviewed-on: https://dawn-review.googlesource.com/c/2708 Reviewed-by: Stephen White <senorblanco@chromium.org> Reviewed-by: Kenneth Russell <kbr@google.com> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
df72914a60
commit
58017e91ad
10
BUILD.gn
10
BUILD.gn
@ -18,6 +18,14 @@ import("//build_overrides/build.gni")
|
|||||||
|
|
||||||
import("//testing/test.gni")
|
import("//testing/test.gni")
|
||||||
|
|
||||||
|
# Use Chromium's dcheck_always_on when available so that we respect it when
|
||||||
|
# running tests on the GPU builders
|
||||||
|
if (build_with_chromium) {
|
||||||
|
import("//build/config/dcheck_always_on.gni")
|
||||||
|
} else {
|
||||||
|
dcheck_always_on = false
|
||||||
|
}
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Template to wrap the Dawn code generator
|
# Template to wrap the Dawn code generator
|
||||||
###############################################################################
|
###############################################################################
|
||||||
@ -153,7 +161,7 @@ config("dawn_internal") {
|
|||||||
include_dirs = [ "src" ]
|
include_dirs = [ "src" ]
|
||||||
|
|
||||||
defines = []
|
defines = []
|
||||||
if (dawn_always_assert || is_debug) {
|
if (dawn_always_assert || dcheck_always_on || is_debug) {
|
||||||
defines += [ "DAWN_ENABLE_ASSERTS" ]
|
defines += [ "DAWN_ENABLE_ASSERTS" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user