@@ -93,88 +93,6 @@ cros_toolchain("target") {
93
93
}
94
94
}
95
95
96
- # This is a special toolchain needed just for the nacl_bootstrap target in
97
- # //native_client/src/trusted/service_runtime/linux. It is identical
98
- # to ":target" except that it forces `use_debug_fission1 and `use_sysroot` off,
99
- # and allows the user to set different sets of extra flags.
100
- cros_toolchain (" nacl_bootstrap" ) {
101
- toolchain_args = {
102
- if (target_cpu == " arm64" ) {
103
- current_cpu = " arm"
104
- } else {
105
- current_cpu = target_cpu
106
- }
107
- current_os = " chromeos"
108
- use_debug_fission = false
109
- use_sysroot = false
110
- }
111
-
112
- if (! lacros_use_chromium_toolchain ) {
113
- ar = cros_target_ar
114
- cc = cros_target_cc
115
- cxx = cros_target_cxx
116
- ld = cros_target_ld
117
-
118
- if (cros_target_nm != " " ) {
119
- nm = cros_target_nm
120
- }
121
- if (cros_target_readelf != " " ) {
122
- readelf = cros_target_readelf
123
- }
124
- extra_cflags = cros_nacl_bootstrap_extra_cflags
125
- extra_cppflags = cros_nacl_bootstrap_extra_cppflags
126
- extra_cxxflags = cros_nacl_bootstrap_extra_cxxflags
127
- extra_ldflags = cros_nacl_bootstrap_extra_ldflags
128
-
129
- needs_rewrapper_path_arg = cros_needs_rewrapper_path_arg
130
- }
131
-
132
- # We build for ARM32, even when the rest of the build targets ARM64.
133
- if (target_cpu == " arm64" ) {
134
- ar = cros_nacl_helper_arm32_ar
135
- cc = cros_nacl_helper_arm32_cc
136
- cxx = cros_nacl_helper_arm32_cxx
137
- ld = cros_nacl_helper_arm32_ld
138
-
139
- # Avoid accidental use of Arm64 sysroot because of SYSROOT
140
- # env variable set in ChromeOS builds.
141
- toolchain_args .sysroot = cros_nacl_helper_arm32_sysroot
142
- }
143
- }
144
-
145
- # This is a special toolchain needed just for the nacl_helper target for
146
- # building an Arm32 nacl_helper binary on Arm64 ChromeOS targets.
147
- cros_toolchain (" nacl_helper_arm32" ) {
148
- toolchain_args = {
149
- current_cpu = " arm"
150
- current_os = " chromeos"
151
- use_debug_fission = false
152
- sysroot = cros_nacl_helper_arm32_sysroot
153
-
154
- # Disable some uses of libraries that this build does not require. The
155
- # sysroot for this build does not provide them, and they would be pulled in
156
- # by indirect dependencies of nacl_helper otherwise.
157
- use_cras = false
158
- use_nss_certs = false
159
- use_system_libdrm = false
160
- use_system_libsync = false
161
- }
162
- ar = cros_nacl_helper_arm32_ar
163
- cc = cros_nacl_helper_arm32_cc
164
- cxx = cros_nacl_helper_arm32_cxx
165
- ld = cros_nacl_helper_arm32_ld
166
- readelf = cros_nacl_helper_arm32_readelf
167
-
168
- extra_cflags = " "
169
- extra_cppflags = " "
170
- extra_cxxflags = " "
171
- extra_ldflags = " "
172
-
173
- if (! lacros_use_chromium_toolchain ) {
174
- needs_rewrapper_path_arg = cros_needs_rewrapper_path_arg
175
- }
176
- }
177
-
178
96
cros_toolchain (" host" ) {
179
97
toolchain_args = {
180
98
current_cpu = host_cpu
0 commit comments