Commit de954efc authored by Will Harris's avatar Will Harris Committed by Commit Bot

Enable CFI for test binaries.

A CFG performance bug in Windows previously prevented this from
being enabled, but now the bots have all been updated to a more
recent version that contains a fix, this exclusion can now be
removed.

BUG=950923,584575

Change-Id: I8e7dcef9135991c0e5daadc4cd99bc5a062ee290
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2530321Reviewed-by: default avatarDirk Pranke <dpranke@google.com>
Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Reviewed-by: default avatarBruce Dawson <brucedawson@chromium.org>
Commit-Queue: Will Harris <wfh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#826549}
parent 6f2eee75
......@@ -3047,11 +3047,6 @@ test("base_unittests") {
]
if (is_win) {
# base_unittests need to test CFG is working, so turn it on for
# this test binary.
# Overrides the globals set in testing/test.gni to disable CFG.
win_test_enable_cfi_linker = true
deps += [ "//base/win:base_win_buildflags" ]
sources += [
......
......@@ -239,8 +239,6 @@ test("sbox_integration_tests") {
":sbox_integration_test_win_proc",
]
# Overrides the globals set in testing/test.gni that disable CFG.
win_test_enable_cfi_linker = true
libs = [ "dxva2.lib" ]
}
......
......@@ -45,7 +45,6 @@ if ((is_linux && !is_chromeos) || is_mac || is_win ||
# use_xvfb: (optional) whether to run the executable under Xvfb.
# use_raw_android_executable: Use executable() rather than android_apk().
# use_native_activity: Test implements ANativeActivity_onCreate().
# win_test_enable_cfi_linker: (Win) Enable CFI linker for this test binary.
# is_xctest: (iOS, optional) whether to build the executable as XCTest.
# Similar to the GN arg 'enable_run_ios_unittests_with_xctest' but
# for build targets.
......@@ -489,14 +488,6 @@ template("test") {
_use_xvfb = false
}
if (is_win) {
if (defined(invoker.win_test_enable_cfi_linker)) {
_win_test_enable_cfi_linker = invoker.win_test_enable_cfi_linker
} else {
_win_test_enable_cfi_linker = false
}
}
generate_wrapper(_gen_runner_target) {
testonly = true
wrapper_script = "$root_build_dir/bin/run_" + _executable
......@@ -537,16 +528,6 @@ template("test") {
deps = []
}
if (is_win) {
if (!_win_test_enable_cfi_linker) {
# Initializing CFG data during process creation is a significant
# bottleneck for large test binaries, and CFG is not needed for
# most tests, so disable it. See https://crbug.com/950923 for
# details. This can be overridden by specifying
# win_test_enable_cfi_linker.
configs -= [ "//build/config/win:cfi_linker" ]
}
}
testonly = true
deps += [
# Give tests the default manifest on Windows (a no-op elsewhere).
......
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