File tree Expand file tree Collapse file tree 5 files changed +15
-20
lines changed Expand file tree Collapse file tree 5 files changed +15
-20
lines changed Original file line number Diff line number Diff line change @@ -113,10 +113,6 @@ config("debug") {
113
113
" DYNAMIC_ANNOTATIONS_ENABLED=1" ,
114
114
]
115
115
116
- if (is_nacl ) {
117
- defines += [ " DYNAMIC_ANNOTATIONS_PREFIX=NACL_" ]
118
- }
119
-
120
116
if (is_win ) {
121
117
if (! enable_iterator_debugging && ! use_custom_libcxx ) {
122
118
# Iterator debugging is enabled by default by the compiler on debug
@@ -139,12 +135,10 @@ config("release") {
139
135
if (is_tsan ) {
140
136
defines += [ " DYNAMIC_ANNOTATIONS_ENABLED=1" ]
141
137
} 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
+ ]
148
142
}
149
143
150
144
if (is_ios ) {
Original file line number Diff line number Diff line change 28
28
# represents the computer doing the compile and never changes. The "target"
29
29
# represents the main thing we're trying to build. The "current" represents
30
30
# 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
32
32
# run the same build file multiple times for the different required
33
33
# configuration in the same build.
34
34
#
@@ -327,7 +327,12 @@ is_fuchsia = current_os == "fuchsia"
327
327
is_ios = current_os == " ios"
328
328
is_linux = current_os == " linux"
329
329
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
+
331
336
is_wasm = current_os == " emscripten"
332
337
is_watchos = current_os == " watchos"
333
338
is_win = current_os == " win" || current_os == " winuwp"
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ declare_args() {
14
14
# coding guidelines, etc. Only used when compiling with Chrome's Clang, not
15
15
# Chrome OS's.
16
16
clang_use_chrome_plugins =
17
- is_clang && ! is_nacl && current_os != " zos" &&
17
+ is_clang && current_os != " zos" &&
18
18
default_toolchain != " //build/toolchain/cros:target" &&
19
19
# TODO(https://crbug.com/351909443): Remove this after fixing performance
20
20
# of Clang modules build.
Original file line number Diff line number Diff line change @@ -64,10 +64,6 @@ declare_args() {
64
64
# not break incremental builds.
65
65
rustc_version = " "
66
66
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
-
71
67
# Whether artifacts produced by the Rust compiler can participate in ThinLTO.
72
68
#
73
69
# One important consideration is whether the linker uses the same LLVM
@@ -112,8 +108,8 @@ declare_args() {
112
108
use_chromium_rust_toolchain = rust_sysroot_absolute == " "
113
109
114
110
# 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
117
113
118
114
# Not all target triples (GN toolchains) are supported by the Rust compiler.
119
115
# Define if we support the current GN toolchain.
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ if (is_win) {
55
55
}
56
56
57
57
declare_args () {
58
- enable_nocompile_tests = is_clang && ! is_nacl
58
+ enable_nocompile_tests = is_clang
59
59
}
60
60
61
61
if (enable_nocompile_tests ) {
You can’t perform that action at this time.
0 commit comments