blob: 12ea7b4759b90530f9451be76959852a227f70b3 [file] [log] [blame]
Colin Cross4d9c2d12016-07-29 12:48:20 -07001// Copyright 2016 Google Inc. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Colin Crossb98c8b02016-07-29 13:44:28 -070015package config
Colin Cross4d9c2d12016-07-29 12:48:20 -070016
17import (
18 "strings"
19
20 "android/soong/android"
Ramy Medhat9a90fe52020-04-13 13:21:23 -040021 "android/soong/remoteexec"
Colin Cross4d9c2d12016-07-29 12:48:20 -070022)
23
Colin Cross4d9c2d12016-07-29 12:48:20 -070024var (
Leo Li8756b372017-05-22 16:11:34 -070025 // Flags used by lots of devices. Putting them in package static variables
26 // will save bytes in build.ninja so they aren't repeated for every file
Colin Cross4d9c2d12016-07-29 12:48:20 -070027 commonGlobalCflags = []string{
28 "-DANDROID",
29 "-fmessage-length=0",
30 "-W",
31 "-Wall",
32 "-Wno-unused",
33 "-Winit-self",
34 "-Wpointer-arith",
George Burgess IVfb81db22020-02-22 19:28:56 -080035 "-Wunreachable-code-loop-increment",
Colin Cross4d9c2d12016-07-29 12:48:20 -070036
Colin Cross7278afc2017-11-02 22:38:32 -070037 // Make paths in deps files relative
38 "-no-canonical-prefixes",
39
Colin Cross4d9c2d12016-07-29 12:48:20 -070040 "-DNDEBUG",
41 "-UDEBUG",
Colin Cross7278afc2017-11-02 22:38:32 -070042
43 "-fno-exceptions",
44 "-Wno-multichar",
45
46 "-O2",
47 "-g",
cmtice5e13f862021-04-22 03:17:16 +000048 "-fdebug-default-version=5",
Yi Kong110cd5f2020-11-04 01:44:15 +080049 "-fdebug-info-for-profiling",
Colin Cross7278afc2017-11-02 22:38:32 -070050
51 "-fno-strict-aliasing",
Dan Willemsen5d980c82019-08-27 19:37:10 -070052
53 "-Werror=date-time",
Elliott Hughes2cdbdf12019-12-03 18:13:00 -080054 "-Werror=pragma-pack",
55 "-Werror=pragma-pack-suspicious-include",
Christopher Di Bella23a991c2020-11-11 22:41:32 +000056 "-Werror=string-plus-int",
George Burgess IVfb81db22020-02-22 19:28:56 -080057 "-Werror=unreachable-code-loop-increment",
Colin Cross4d9c2d12016-07-29 12:48:20 -070058 }
59
Colin Cross6f6a4282016-10-17 14:19:06 -070060 commonGlobalConlyflags = []string{}
Elliott Hughes5a0401a2016-10-07 13:12:58 -070061
Colin Cross4d9c2d12016-07-29 12:48:20 -070062 deviceGlobalCflags = []string{
Colin Cross133dbe72017-11-02 22:55:19 -070063 "-ffunction-sections",
Colin Crossea3141d2017-11-06 14:02:02 -080064 "-fdata-sections",
65 "-fno-short-enums",
Colin Cross133dbe72017-11-02 22:55:19 -070066 "-funwind-tables",
67 "-fstack-protector-strong",
68 "-Wa,--noexecstack",
69 "-D_FORTIFY_SOURCE=2",
70
71 "-Wstrict-aliasing=2",
72
Colin Cross4d9c2d12016-07-29 12:48:20 -070073 "-Werror=return-type",
74 "-Werror=non-virtual-dtor",
75 "-Werror=address",
76 "-Werror=sequence-point",
Colin Cross133dbe72017-11-02 22:55:19 -070077 "-Werror=format-security",
Colin Crossc8bed312021-07-14 17:56:21 -070078 "-nostdlibinc",
Colin Cross4d9c2d12016-07-29 12:48:20 -070079 }
80
Colin Cross26f14502017-11-06 13:59:48 -080081 deviceGlobalCppflags = []string{
82 "-fvisibility-inlines-hidden",
83 }
84
Colin Cross324a4572017-11-02 23:09:41 -070085 deviceGlobalLdflags = []string{
86 "-Wl,-z,noexecstack",
87 "-Wl,-z,relro",
88 "-Wl,-z,now",
89 "-Wl,--build-id=md5",
90 "-Wl,--warn-shared-textrel",
91 "-Wl,--fatal-warnings",
92 "-Wl,--no-undefined-version",
Ryan Prichardb35a85e2021-01-13 19:18:53 -080093 // TODO: Eventually we should link against a libunwind.a with hidden symbols, and then these
94 // --exclude-libs arguments can be removed.
Christopher Ferrisc3a1e222019-04-10 17:57:50 -070095 "-Wl,--exclude-libs,libgcc.a",
Yi Kong3d8792f2019-05-06 16:18:33 -070096 "-Wl,--exclude-libs,libgcc_stripped.a",
Peter Collingbournee5ba2862019-12-10 18:37:45 -080097 "-Wl,--exclude-libs,libunwind_llvm.a",
Ryan Prichardb35a85e2021-01-13 19:18:53 -080098 "-Wl,--exclude-libs,libunwind.a",
Ryo Hashimoto5818b932021-03-23 15:05:22 +090099 "-Wl,--icf=safe",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700100 }
101
Colin Cross33bac242021-07-14 17:03:16 -0700102 deviceGlobalLldflags = append(deviceGlobalLdflags,
Chih-Hung Hsieh02b4da52018-04-03 11:33:34 -0700103 []string{
Chih-Hung Hsieh02b4da52018-04-03 11:33:34 -0700104 "-fuse-ld=lld",
105 }...)
106
Colin Cross4d9c2d12016-07-29 12:48:20 -0700107 hostGlobalCflags = []string{}
108
Colin Cross26f14502017-11-06 13:59:48 -0800109 hostGlobalCppflags = []string{}
110
Colin Cross324a4572017-11-02 23:09:41 -0700111 hostGlobalLdflags = []string{}
112
Chih-Hung Hsieh3101a962018-04-17 14:16:05 -0700113 hostGlobalLldflags = []string{"-fuse-ld=lld"}
Chih-Hung Hsieh02b4da52018-04-03 11:33:34 -0700114
Colin Cross4d9c2d12016-07-29 12:48:20 -0700115 commonGlobalCppflags = []string{
116 "-Wsign-promo",
Colin Crossc8bed312021-07-14 17:56:21 -0700117
118 // -Wimplicit-fallthrough is not enabled by -Wall.
119 "-Wimplicit-fallthrough",
120
121 // Enable clang's thread-safety annotations in libcxx.
122 "-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS",
123
124 // libc++'s math.h has an #include_next outside of system_headers.
125 "-Wno-gnu-include-next",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700126 }
127
128 noOverrideGlobalCflags = []string{
Christopher Di Bella23a991c2020-11-11 22:41:32 +0000129 "-Werror=bool-operation",
130 "-Werror=implicit-int-float-conversion",
131 "-Werror=int-in-bool-context",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700132 "-Werror=int-to-pointer-cast",
133 "-Werror=pointer-to-int-cast",
Christopher Di Bella23a991c2020-11-11 22:41:32 +0000134 "-Werror=string-compare",
135 "-Werror=xor-used-as-pow",
Stephen Hines2210e722020-07-15 11:11:57 -0700136 // http://b/161386391 for -Wno-void-pointer-to-enum-cast
137 "-Wno-void-pointer-to-enum-cast",
138 // http://b/161386391 for -Wno-void-pointer-to-int-cast
139 "-Wno-void-pointer-to-int-cast",
140 // http://b/161386391 for -Wno-pointer-to-int-cast
141 "-Wno-pointer-to-int-cast",
George Burgess IV6c691642019-09-18 17:52:05 -0700142 "-Werror=fortify-source",
Colin Crossc8bed312021-07-14 17:56:21 -0700143
144 "-Werror=address-of-temporary",
145 // Bug: http://b/29823425 Disable -Wnull-dereference until the
146 // new cases detected by this warning in Clang r271374 are
147 // fixed.
148 //"-Werror=null-dereference",
149 "-Werror=return-type",
150
151 // http://b/72331526 Disable -Wtautological-* until the instances detected by these
152 // new warnings are fixed.
153 "-Wno-tautological-constant-compare",
154 "-Wno-tautological-type-limit-compare",
155 // http://b/145210666
156 "-Wno-reorder-init-list",
157 // http://b/145211066
158 "-Wno-implicit-int-float-conversion",
159 // New warnings to be fixed after clang-r377782.
160 "-Wno-int-in-bool-context", // http://b/148287349
161 "-Wno-sizeof-array-div", // http://b/148815709
162 "-Wno-tautological-overlap-compare", // http://b/148815696
163 // New warnings to be fixed after clang-r383902.
164 "-Wno-deprecated-copy", // http://b/153746672
165 "-Wno-range-loop-construct", // http://b/153747076
166 "-Wno-misleading-indentation", // http://b/153746954
167 "-Wno-zero-as-null-pointer-constant", // http://b/68236239
168 "-Wno-deprecated-anon-enum-enum-conversion", // http://b/153746485
169 "-Wno-deprecated-enum-enum-conversion", // http://b/153746563
170 "-Wno-string-compare", // http://b/153764102
171 "-Wno-enum-enum-conversion", // http://b/154138986
172 "-Wno-enum-float-conversion", // http://b/154255917
173 "-Wno-pessimizing-move", // http://b/154270751
174 // New warnings to be fixed after clang-r399163
175 "-Wno-non-c-typedef-for-linkage", // http://b/161304145
176 // New warnings to be fixed after clang-r407598
177 "-Wno-string-concatenation", // http://b/175068488
178 }
179
180 // Extra cflags for external third-party projects to disable warnings that
181 // are infeasible to fix in all the external projects and their upstream repos.
182 extraExternalCflags = []string{
183 "-Wno-enum-compare",
184 "-Wno-enum-compare-switch",
185
186 // http://b/72331524 Allow null pointer arithmetic until the instances detected by
187 // this new warning are fixed.
188 "-Wno-null-pointer-arithmetic",
189
190 // Bug: http://b/29823425 Disable -Wnull-dereference until the
191 // new instances detected by this warning are fixed.
192 "-Wno-null-dereference",
193
194 // http://b/145211477
195 "-Wno-pointer-compare",
196 // http://b/145211022
197 "-Wno-xor-used-as-pow",
198 // http://b/145211022
199 "-Wno-final-dtor-non-final-class",
200
201 // http://b/165945989
202 "-Wno-psabi",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700203 }
204
Colin Crossb98c8b02016-07-29 13:44:28 -0700205 IllegalFlags = []string{
Colin Cross4d9c2d12016-07-29 12:48:20 -0700206 "-w",
207 }
Colin Cross6f6a4282016-10-17 14:19:06 -0700208
Dan Albert043833c2017-02-03 16:13:38 -0800209 CStdVersion = "gnu99"
Elliott Hughes34e4e412018-11-30 16:03:06 +0000210 CppStdVersion = "gnu++17"
Dan Albert043833c2017-02-03 16:13:38 -0800211 ExperimentalCStdVersion = "gnu11"
Elliott Hughes37976122018-11-28 14:16:39 -0800212 ExperimentalCppStdVersion = "gnu++2a"
Jayant Chowdhary6e8115a2017-05-09 10:21:52 -0700213
Leo Li8756b372017-05-22 16:11:34 -0700214 // prebuilts/clang default settings.
215 ClangDefaultBase = "prebuilts/clang/host"
Pirama Arumuga Nainar3e545082021-06-23 22:39:37 -0700216 ClangDefaultVersion = "clang-r416183b1"
217 ClangDefaultShortVersion = "12.0.7"
Chih-Hung Hsieh64a38dc2017-11-14 14:09:14 -0800218
Chih-Hung Hsieh775edde2017-12-24 22:24:47 -0800219 // Directories with warnings from Android.bp files.
Chih-Hung Hsieh64a38dc2017-11-14 14:09:14 -0800220 WarningAllowedProjects = []string{
Chih-Hung Hsieh64a38dc2017-11-14 14:09:14 -0800221 "device/",
Chih-Hung Hsieh64a38dc2017-11-14 14:09:14 -0800222 "vendor/",
223 }
224
Chih-Hung Hsieh775edde2017-12-24 22:24:47 -0800225 // Directories with warnings from Android.mk files.
226 WarningAllowedOldProjects = []string{}
Colin Cross4d9c2d12016-07-29 12:48:20 -0700227)
228
Colin Crossb98c8b02016-07-29 13:44:28 -0700229var pctx = android.NewPackageContext("android/soong/cc/config")
230
Colin Cross4d9c2d12016-07-29 12:48:20 -0700231func init() {
Kousik Kumard207cbe2020-10-20 05:52:49 +0000232 if android.BuildOs == android.Linux {
233 commonGlobalCflags = append(commonGlobalCflags, "-fdebug-prefix-map=/proc/self/cwd=")
234 }
235
Jingwen Chen51a1e1c2021-05-20 13:40:14 +0000236 exportStringListStaticVariable("CommonGlobalConlyflags", commonGlobalConlyflags)
237 exportStringListStaticVariable("DeviceGlobalCppflags", deviceGlobalCppflags)
238 exportStringListStaticVariable("DeviceGlobalLdflags", deviceGlobalLdflags)
239 exportStringListStaticVariable("DeviceGlobalLldflags", deviceGlobalLldflags)
240 exportStringListStaticVariable("HostGlobalCppflags", hostGlobalCppflags)
241 exportStringListStaticVariable("HostGlobalLdflags", hostGlobalLdflags)
242 exportStringListStaticVariable("HostGlobalLldflags", hostGlobalLldflags)
Jingwen Chenbf61afb2021-05-06 13:31:18 +0000243
244 // Export the static default CommonClangGlobalCflags to Bazel.
245 // TODO(187086342): handle cflags that are set in VariableFuncs.
246 commonClangGlobalCFlags := append(
Colin Cross33bac242021-07-14 17:03:16 -0700247 commonGlobalCflags,
Jingwen Chenbf61afb2021-05-06 13:31:18 +0000248 []string{
249 "${ClangExtraCflags}",
250 // Default to zero initialization.
251 "-ftrivial-auto-var-init=zero",
252 "-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang",
253 }...)
Jingwen Chen51a1e1c2021-05-20 13:40:14 +0000254 exportedStringListVars.Set("CommonClangGlobalCflags", commonClangGlobalCFlags)
Colin Cross4d9c2d12016-07-29 12:48:20 -0700255
Stephen Hines66c8b442019-06-10 17:40:12 -0700256 pctx.VariableFunc("CommonClangGlobalCflags", func(ctx android.PackageVarContext) string {
Colin Cross33bac242021-07-14 17:03:16 -0700257 flags := commonGlobalCflags
Stephen Hines66c8b442019-06-10 17:40:12 -0700258 flags = append(flags, "${ClangExtraCflags}")
259
260 // http://b/131390872
261 // Automatically initialize any uninitialized stack variables.
Stephen Hines5c873ac2020-05-14 00:59:09 +0000262 // Prefer zero-init if multiple options are set.
Stephen Hines66c8b442019-06-10 17:40:12 -0700263 if ctx.Config().IsEnvTrue("AUTO_ZERO_INITIALIZE") {
264 flags = append(flags, "-ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang")
265 } else if ctx.Config().IsEnvTrue("AUTO_PATTERN_INITIALIZE") {
266 flags = append(flags, "-ftrivial-auto-var-init=pattern")
Stephen Hines797e1952020-01-28 14:43:11 -0800267 } else if ctx.Config().IsEnvTrue("AUTO_UNINITIALIZE") {
268 flags = append(flags, "-ftrivial-auto-var-init=uninitialized")
Stephen Hines0e1d5d82020-01-30 15:06:00 -0800269 } else {
Stephen Hines5c873ac2020-05-14 00:59:09 +0000270 // Default to zero initialization.
271 flags = append(flags, "-ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang")
Stephen Hines66c8b442019-06-10 17:40:12 -0700272 }
Stephen Hines66c8b442019-06-10 17:40:12 -0700273 return strings.Join(flags, " ")
274 })
275
Jingwen Chenbf61afb2021-05-06 13:31:18 +0000276 // Export the static default DeviceClangGlobalCflags to Bazel.
277 // TODO(187086342): handle cflags that are set in VariableFuncs.
Colin Crossc8bed312021-07-14 17:56:21 -0700278 exportedStringListVars.Set("DeviceClangGlobalCflags", deviceGlobalCflags)
Jingwen Chenbf61afb2021-05-06 13:31:18 +0000279
Doug Hornc32c6b02019-01-17 14:44:05 -0800280 pctx.VariableFunc("DeviceClangGlobalCflags", func(ctx android.PackageVarContext) string {
Colin Crossc8bed312021-07-14 17:56:21 -0700281 return strings.Join(deviceGlobalCflags, " ")
Doug Hornc32c6b02019-01-17 14:44:05 -0800282 })
Colin Cross4d9c2d12016-07-29 12:48:20 -0700283
Colin Cross33bac242021-07-14 17:03:16 -0700284 exportStringListStaticVariable("HostClangGlobalCflags", hostGlobalCflags)
Colin Crossc8bed312021-07-14 17:56:21 -0700285 exportStringListStaticVariable("NoOverrideClangGlobalCflags", noOverrideGlobalCflags)
286 exportStringListStaticVariable("CommonClangGlobalCppflags", commonGlobalCppflags)
287 exportStringListStaticVariable("ClangExternalCflags", extraExternalCflags)
Yi Kongcc80f8d2018-06-06 14:42:44 -0700288
Colin Cross1cfd89a2016-09-15 09:30:46 -0700289 // Everything in these lists is a crime against abstraction and dependency tracking.
Colin Cross4d9c2d12016-07-29 12:48:20 -0700290 // Do not add anything to this list.
Jingwen Chen21999952021-05-19 05:53:51 +0000291 commonGlobalIncludes := []string{
292 "system/core/include",
293 "system/logging/liblog/include",
294 "system/media/audio/include",
295 "hardware/libhardware/include",
296 "hardware/libhardware_legacy/include",
297 "hardware/ril/include",
298 "frameworks/native/include",
299 "frameworks/native/opengl/include",
300 "frameworks/av/include",
301 }
Jingwen Chen51a1e1c2021-05-20 13:40:14 +0000302 exportedStringListVars.Set("CommonGlobalIncludes", commonGlobalIncludes)
Jingwen Chen21999952021-05-19 05:53:51 +0000303 pctx.PrefixedExistentPathsForSourcesVariable("CommonGlobalIncludes", "-I", commonGlobalIncludes)
Colin Cross4d9c2d12016-07-29 12:48:20 -0700304
Leo Li8756b372017-05-22 16:11:34 -0700305 pctx.SourcePathVariable("ClangDefaultBase", ClangDefaultBase)
Dan Willemsen54daaf02018-03-12 13:24:09 -0700306 pctx.VariableFunc("ClangBase", func(ctx android.PackageVarContext) string {
307 if override := ctx.Config().Getenv("LLVM_PREBUILTS_BASE"); override != "" {
308 return override
Colin Cross4d9c2d12016-07-29 12:48:20 -0700309 }
Dan Willemsen54daaf02018-03-12 13:24:09 -0700310 return "${ClangDefaultBase}"
Colin Cross4d9c2d12016-07-29 12:48:20 -0700311 })
Dan Willemsen54daaf02018-03-12 13:24:09 -0700312 pctx.VariableFunc("ClangVersion", func(ctx android.PackageVarContext) string {
313 if override := ctx.Config().Getenv("LLVM_PREBUILTS_VERSION"); override != "" {
314 return override
Colin Cross4d9c2d12016-07-29 12:48:20 -0700315 }
Dan Willemsen54daaf02018-03-12 13:24:09 -0700316 return ClangDefaultVersion
Colin Cross4d9c2d12016-07-29 12:48:20 -0700317 })
Colin Crossb98c8b02016-07-29 13:44:28 -0700318 pctx.StaticVariable("ClangPath", "${ClangBase}/${HostPrebuiltTag}/${ClangVersion}")
319 pctx.StaticVariable("ClangBin", "${ClangPath}/bin")
320
Dan Willemsen54daaf02018-03-12 13:24:09 -0700321 pctx.VariableFunc("ClangShortVersion", func(ctx android.PackageVarContext) string {
322 if override := ctx.Config().Getenv("LLVM_RELEASE_VERSION"); override != "" {
323 return override
Stephen Hinese55a4cc2016-11-18 17:12:38 -0800324 }
Dan Willemsen54daaf02018-03-12 13:24:09 -0700325 return ClangDefaultShortVersion
Stephen Hinese55a4cc2016-11-18 17:12:38 -0800326 })
Stephen Hines755fe072018-01-24 19:58:36 -0800327 pctx.StaticVariable("ClangAsanLibDir", "${ClangBase}/linux-x86/${ClangVersion}/lib64/clang/${ClangShortVersion}/lib/linux")
Alistair Strachan777475c2016-08-26 12:55:49 -0700328
Jayant Chowdharye622d202017-02-01 19:19:52 -0800329 // These are tied to the version of LLVM directly in external/llvm, so they might trail the host prebuilts
330 // being used for the rest of the build process.
331 pctx.SourcePathVariable("RSClangBase", "prebuilts/clang/host")
332 pctx.SourcePathVariable("RSClangVersion", "clang-3289846")
333 pctx.SourcePathVariable("RSReleaseVersion", "3.8")
334 pctx.StaticVariable("RSLLVMPrebuiltsPath", "${RSClangBase}/${HostPrebuiltTag}/${RSClangVersion}/bin")
335 pctx.StaticVariable("RSIncludePath", "${RSLLVMPrebuiltsPath}/../lib64/clang/${RSReleaseVersion}/include")
336
Jeff Gaston734e3802017-04-10 15:47:24 -0700337 pctx.PrefixedExistentPathsForSourcesVariable("RsGlobalIncludes", "-I",
Colin Cross2a252be2017-05-01 17:37:24 -0700338 []string{
339 "external/clang/lib/Headers",
340 "frameworks/rs/script_api/include",
341 })
342
Dan Willemsen54daaf02018-03-12 13:24:09 -0700343 pctx.VariableFunc("CcWrapper", func(ctx android.PackageVarContext) string {
344 if override := ctx.Config().Getenv("CC_WRAPPER"); override != "" {
345 return override + " "
Alistair Strachan777475c2016-08-26 12:55:49 -0700346 }
Dan Willemsen54daaf02018-03-12 13:24:09 -0700347 return ""
Alistair Strachan777475c2016-08-26 12:55:49 -0700348 })
Ramy Medhat9a90fe52020-04-13 13:21:23 -0400349
Colin Cross77cdcfd2021-03-12 11:28:25 -0800350 pctx.StaticVariableWithEnvOverride("RECXXPool", "RBE_CXX_POOL", remoteexec.DefaultPool)
351 pctx.StaticVariableWithEnvOverride("RECXXLinksPool", "RBE_CXX_LINKS_POOL", remoteexec.DefaultPool)
352 pctx.StaticVariableWithEnvOverride("REClangTidyPool", "RBE_CLANG_TIDY_POOL", remoteexec.DefaultPool)
353 pctx.StaticVariableWithEnvOverride("RECXXLinksExecStrategy", "RBE_CXX_LINKS_EXEC_STRATEGY", remoteexec.LocalExecStrategy)
354 pctx.StaticVariableWithEnvOverride("REClangTidyExecStrategy", "RBE_CLANG_TIDY_EXEC_STRATEGY", remoteexec.LocalExecStrategy)
355 pctx.StaticVariableWithEnvOverride("REAbiDumperExecStrategy", "RBE_ABI_DUMPER_EXEC_STRATEGY", remoteexec.LocalExecStrategy)
356 pctx.StaticVariableWithEnvOverride("REAbiLinkerExecStrategy", "RBE_ABI_LINKER_EXEC_STRATEGY", remoteexec.LocalExecStrategy)
Colin Cross4d9c2d12016-07-29 12:48:20 -0700357}
358
359var HostPrebuiltTag = pctx.VariableConfigMethod("HostPrebuiltTag", android.Config.PrebuiltOS)