Skip to content

Commit 9a17ade

Browse files
nicocopybara-github
authored andcommitted
Remove is_nacl in //build, //build_overrides
Bug: 40511454 Change-Id: I77ee822574e22c3cbfad0dddd68a3d95013f4dc2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6686066 Reviewed-by: Hans Wennborg <[email protected]> Auto-Submit: Nico Weber <[email protected]> Commit-Queue: Hans Wennborg <[email protected]> Cr-Commit-Position: refs/heads/main@{#1480288} NOKEYCHECK=True GitOrigin-RevId: 82a27169148052767b00c89f2839b35c9913b389
1 parent 875c846 commit 9a17ade

File tree

5 files changed

+15
-20
lines changed

5 files changed

+15
-20
lines changed

config/BUILD.gn

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,6 @@ config("debug") {
113113
"DYNAMIC_ANNOTATIONS_ENABLED=1",
114114
]
115115

116-
if (is_nacl) {
117-
defines += [ "DYNAMIC_ANNOTATIONS_PREFIX=NACL_" ]
118-
}
119-
120116
if (is_win) {
121117
if (!enable_iterator_debugging && !use_custom_libcxx) {
122118
# Iterator debugging is enabled by default by the compiler on debug
@@ -139,12 +135,10 @@ config("release") {
139135
if (is_tsan) {
140136
defines += [ "DYNAMIC_ANNOTATIONS_ENABLED=1" ]
141137
} else {
142-
defines += [ "NVALGRIND" ]
143-
if (!is_nacl) {
144-
# NaCl always enables dynamic annotations. Currently this value is set to
145-
# 1 for all .nexes.
146-
defines += [ "DYNAMIC_ANNOTATIONS_ENABLED=0" ]
147-
}
138+
defines += [
139+
"NVALGRIND",
140+
"DYNAMIC_ANNOTATIONS_ENABLED=0",
141+
]
148142
}
149143

150144
if (is_ios) {

config/BUILDCONFIG.gn

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# represents the computer doing the compile and never changes. The "target"
2929
# represents the main thing we're trying to build. The "current" represents
3030
# which configuration is currently being defined, which can be either the
31-
# host, the target, or something completely different (like nacl). GN will
31+
# host, the target, or something completely different. GN will
3232
# run the same build file multiple times for the different required
3333
# configuration in the same build.
3434
#
@@ -327,7 +327,12 @@ is_fuchsia = current_os == "fuchsia"
327327
is_ios = current_os == "ios"
328328
is_linux = current_os == "linux"
329329
is_mac = current_os == "mac"
330-
is_nacl = current_os == "nacl"
330+
331+
# TODO(crbug.com/40511454): Remove is_nacl from all build files, then
332+
# remove the is_nacl variable.
333+
assert(current_os != "nacl")
334+
is_nacl = false
335+
331336
is_wasm = current_os == "emscripten"
332337
is_watchos = current_os == "watchos"
333338
is_win = current_os == "win" || current_os == "winuwp"

config/clang/clang.gni

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ declare_args() {
1414
# coding guidelines, etc. Only used when compiling with Chrome's Clang, not
1515
# Chrome OS's.
1616
clang_use_chrome_plugins =
17-
is_clang && !is_nacl && current_os != "zos" &&
17+
is_clang && current_os != "zos" &&
1818
default_toolchain != "//build/toolchain/cros:target" &&
1919
# TODO(https://crbug.com/351909443): Remove this after fixing performance
2020
# of Clang modules build.

config/rust.gni

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ declare_args() {
6464
# not break incremental builds.
6565
rustc_version = ""
6666

67-
# If you're using a Rust toolchain as specified by rust_sysroot_absolute,
68-
# you can specify whether it supports nacl here.
69-
rust_toolchain_supports_nacl = false
70-
7167
# Whether artifacts produced by the Rust compiler can participate in ThinLTO.
7268
#
7369
# One important consideration is whether the linker uses the same LLVM
@@ -112,8 +108,8 @@ declare_args() {
112108
use_chromium_rust_toolchain = rust_sysroot_absolute == ""
113109

114110
# Platform support for the Rust toolchain.
115-
chromium_toolchain_supports_platform = !is_nacl && !is_wasm
116-
custom_toolchain_supports_platform = !is_nacl || rust_toolchain_supports_nacl
111+
chromium_toolchain_supports_platform = !is_wasm
112+
custom_toolchain_supports_platform = true
117113

118114
# Not all target triples (GN toolchains) are supported by the Rust compiler.
119115
# Define if we support the current GN toolchain.

nocompile.gni

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ if (is_win) {
5555
}
5656

5757
declare_args() {
58-
enable_nocompile_tests = is_clang && !is_nacl
58+
enable_nocompile_tests = is_clang
5959
}
6060

6161
if (enable_nocompile_tests) {

0 commit comments

Comments
 (0)