blob: 31107b314a7215e270e5b28e0ed6af7d75e0482b [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
Yabin Cui10bf3b82021-08-10 15:42:10 +0000178 // New warnings to be fixed after clang-r428724
179 "-Wno-align-mismatch", // http://b/193679946
Colin Crossc8bed312021-07-14 17:56:21 -0700180 }
181
182 // Extra cflags for external third-party projects to disable warnings that
183 // are infeasible to fix in all the external projects and their upstream repos.
184 extraExternalCflags = []string{
185 "-Wno-enum-compare",
186 "-Wno-enum-compare-switch",
187
188 // http://b/72331524 Allow null pointer arithmetic until the instances detected by
189 // this new warning are fixed.
190 "-Wno-null-pointer-arithmetic",
191
192 // Bug: http://b/29823425 Disable -Wnull-dereference until the
193 // new instances detected by this warning are fixed.
194 "-Wno-null-dereference",
195
196 // http://b/145211477
197 "-Wno-pointer-compare",
198 // http://b/145211022
199 "-Wno-xor-used-as-pow",
200 // http://b/145211022
201 "-Wno-final-dtor-non-final-class",
202
203 // http://b/165945989
204 "-Wno-psabi",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700205 }
206
Colin Crossb98c8b02016-07-29 13:44:28 -0700207 IllegalFlags = []string{
Colin Cross4d9c2d12016-07-29 12:48:20 -0700208 "-w",
209 }
Colin Cross6f6a4282016-10-17 14:19:06 -0700210
Dan Albert043833c2017-02-03 16:13:38 -0800211 CStdVersion = "gnu99"
Elliott Hughes34e4e412018-11-30 16:03:06 +0000212 CppStdVersion = "gnu++17"
Dan Albert043833c2017-02-03 16:13:38 -0800213 ExperimentalCStdVersion = "gnu11"
Elliott Hughes37976122018-11-28 14:16:39 -0800214 ExperimentalCppStdVersion = "gnu++2a"
Jayant Chowdhary6e8115a2017-05-09 10:21:52 -0700215
Leo Li8756b372017-05-22 16:11:34 -0700216 // prebuilts/clang default settings.
217 ClangDefaultBase = "prebuilts/clang/host"
Yabin Cui10bf3b82021-08-10 15:42:10 +0000218 ClangDefaultVersion = "clang-r428724"
219 ClangDefaultShortVersion = "13.0.1"
Chih-Hung Hsieh64a38dc2017-11-14 14:09:14 -0800220
Chih-Hung Hsieh775edde2017-12-24 22:24:47 -0800221 // Directories with warnings from Android.bp files.
Chih-Hung Hsieh64a38dc2017-11-14 14:09:14 -0800222 WarningAllowedProjects = []string{
Chih-Hung Hsieh64a38dc2017-11-14 14:09:14 -0800223 "device/",
Chih-Hung Hsieh64a38dc2017-11-14 14:09:14 -0800224 "vendor/",
225 }
226
Chih-Hung Hsieh775edde2017-12-24 22:24:47 -0800227 // Directories with warnings from Android.mk files.
228 WarningAllowedOldProjects = []string{}
Colin Cross4d9c2d12016-07-29 12:48:20 -0700229)
230
Colin Crossb98c8b02016-07-29 13:44:28 -0700231var pctx = android.NewPackageContext("android/soong/cc/config")
232
Colin Cross4d9c2d12016-07-29 12:48:20 -0700233func init() {
Kousik Kumard207cbe2020-10-20 05:52:49 +0000234 if android.BuildOs == android.Linux {
235 commonGlobalCflags = append(commonGlobalCflags, "-fdebug-prefix-map=/proc/self/cwd=")
236 }
237
Jingwen Chen51a1e1c2021-05-20 13:40:14 +0000238 exportStringListStaticVariable("CommonGlobalConlyflags", commonGlobalConlyflags)
239 exportStringListStaticVariable("DeviceGlobalCppflags", deviceGlobalCppflags)
240 exportStringListStaticVariable("DeviceGlobalLdflags", deviceGlobalLdflags)
241 exportStringListStaticVariable("DeviceGlobalLldflags", deviceGlobalLldflags)
242 exportStringListStaticVariable("HostGlobalCppflags", hostGlobalCppflags)
243 exportStringListStaticVariable("HostGlobalLdflags", hostGlobalLdflags)
244 exportStringListStaticVariable("HostGlobalLldflags", hostGlobalLldflags)
Jingwen Chenbf61afb2021-05-06 13:31:18 +0000245
Colin Cross0523ba22021-07-14 18:45:05 -0700246 // Export the static default CommonGlobalCflags to Bazel.
Jingwen Chenbf61afb2021-05-06 13:31:18 +0000247 // TODO(187086342): handle cflags that are set in VariableFuncs.
Colin Cross0523ba22021-07-14 18:45:05 -0700248 bazelCommonGlobalCflags := append(
Colin Cross33bac242021-07-14 17:03:16 -0700249 commonGlobalCflags,
Jingwen Chenbf61afb2021-05-06 13:31:18 +0000250 []string{
251 "${ClangExtraCflags}",
252 // Default to zero initialization.
253 "-ftrivial-auto-var-init=zero",
254 "-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang",
255 }...)
Colin Cross0523ba22021-07-14 18:45:05 -0700256 exportedStringListVars.Set("CommonGlobalCflags", bazelCommonGlobalCflags)
Colin Cross4d9c2d12016-07-29 12:48:20 -0700257
Colin Cross0523ba22021-07-14 18:45:05 -0700258 pctx.VariableFunc("CommonGlobalCflags", func(ctx android.PackageVarContext) string {
Colin Cross33bac242021-07-14 17:03:16 -0700259 flags := commonGlobalCflags
Stephen Hines66c8b442019-06-10 17:40:12 -0700260 flags = append(flags, "${ClangExtraCflags}")
261
262 // http://b/131390872
263 // Automatically initialize any uninitialized stack variables.
Stephen Hines5c873ac2020-05-14 00:59:09 +0000264 // Prefer zero-init if multiple options are set.
Stephen Hines66c8b442019-06-10 17:40:12 -0700265 if ctx.Config().IsEnvTrue("AUTO_ZERO_INITIALIZE") {
266 flags = append(flags, "-ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang")
267 } else if ctx.Config().IsEnvTrue("AUTO_PATTERN_INITIALIZE") {
268 flags = append(flags, "-ftrivial-auto-var-init=pattern")
Stephen Hines797e1952020-01-28 14:43:11 -0800269 } else if ctx.Config().IsEnvTrue("AUTO_UNINITIALIZE") {
270 flags = append(flags, "-ftrivial-auto-var-init=uninitialized")
Stephen Hines0e1d5d82020-01-30 15:06:00 -0800271 } else {
Stephen Hines5c873ac2020-05-14 00:59:09 +0000272 // Default to zero initialization.
273 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 -0700274 }
Stephen Hines66c8b442019-06-10 17:40:12 -0700275 return strings.Join(flags, " ")
276 })
277
Colin Cross0523ba22021-07-14 18:45:05 -0700278 // Export the static default DeviceGlobalCflags to Bazel.
Jingwen Chenbf61afb2021-05-06 13:31:18 +0000279 // TODO(187086342): handle cflags that are set in VariableFuncs.
Colin Cross0523ba22021-07-14 18:45:05 -0700280 exportedStringListVars.Set("DeviceGlobalCflags", deviceGlobalCflags)
Jingwen Chenbf61afb2021-05-06 13:31:18 +0000281
Colin Cross0523ba22021-07-14 18:45:05 -0700282 pctx.VariableFunc("DeviceGlobalCflags", func(ctx android.PackageVarContext) string {
Colin Crossc8bed312021-07-14 17:56:21 -0700283 return strings.Join(deviceGlobalCflags, " ")
Doug Hornc32c6b02019-01-17 14:44:05 -0800284 })
Colin Cross4d9c2d12016-07-29 12:48:20 -0700285
Colin Cross0523ba22021-07-14 18:45:05 -0700286 exportStringListStaticVariable("HostGlobalCflags", hostGlobalCflags)
287 exportStringListStaticVariable("NoOverrideGlobalCflags", noOverrideGlobalCflags)
288 exportStringListStaticVariable("CommonGlobalCppflags", commonGlobalCppflags)
289 exportStringListStaticVariable("ExternalCflags", extraExternalCflags)
Yi Kongcc80f8d2018-06-06 14:42:44 -0700290
Colin Cross1cfd89a2016-09-15 09:30:46 -0700291 // Everything in these lists is a crime against abstraction and dependency tracking.
Colin Cross4d9c2d12016-07-29 12:48:20 -0700292 // Do not add anything to this list.
Jingwen Chen21999952021-05-19 05:53:51 +0000293 commonGlobalIncludes := []string{
294 "system/core/include",
295 "system/logging/liblog/include",
296 "system/media/audio/include",
297 "hardware/libhardware/include",
298 "hardware/libhardware_legacy/include",
299 "hardware/ril/include",
300 "frameworks/native/include",
301 "frameworks/native/opengl/include",
302 "frameworks/av/include",
303 }
Jingwen Chen51a1e1c2021-05-20 13:40:14 +0000304 exportedStringListVars.Set("CommonGlobalIncludes", commonGlobalIncludes)
Jingwen Chen21999952021-05-19 05:53:51 +0000305 pctx.PrefixedExistentPathsForSourcesVariable("CommonGlobalIncludes", "-I", commonGlobalIncludes)
Colin Cross4d9c2d12016-07-29 12:48:20 -0700306
Leo Li8756b372017-05-22 16:11:34 -0700307 pctx.SourcePathVariable("ClangDefaultBase", ClangDefaultBase)
Dan Willemsen54daaf02018-03-12 13:24:09 -0700308 pctx.VariableFunc("ClangBase", func(ctx android.PackageVarContext) string {
309 if override := ctx.Config().Getenv("LLVM_PREBUILTS_BASE"); override != "" {
310 return override
Colin Cross4d9c2d12016-07-29 12:48:20 -0700311 }
Dan Willemsen54daaf02018-03-12 13:24:09 -0700312 return "${ClangDefaultBase}"
Colin Cross4d9c2d12016-07-29 12:48:20 -0700313 })
Dan Willemsen54daaf02018-03-12 13:24:09 -0700314 pctx.VariableFunc("ClangVersion", func(ctx android.PackageVarContext) string {
315 if override := ctx.Config().Getenv("LLVM_PREBUILTS_VERSION"); override != "" {
316 return override
Colin Cross4d9c2d12016-07-29 12:48:20 -0700317 }
Dan Willemsen54daaf02018-03-12 13:24:09 -0700318 return ClangDefaultVersion
Colin Cross4d9c2d12016-07-29 12:48:20 -0700319 })
Colin Crossb98c8b02016-07-29 13:44:28 -0700320 pctx.StaticVariable("ClangPath", "${ClangBase}/${HostPrebuiltTag}/${ClangVersion}")
321 pctx.StaticVariable("ClangBin", "${ClangPath}/bin")
322
Dan Willemsen54daaf02018-03-12 13:24:09 -0700323 pctx.VariableFunc("ClangShortVersion", func(ctx android.PackageVarContext) string {
324 if override := ctx.Config().Getenv("LLVM_RELEASE_VERSION"); override != "" {
325 return override
Stephen Hinese55a4cc2016-11-18 17:12:38 -0800326 }
Dan Willemsen54daaf02018-03-12 13:24:09 -0700327 return ClangDefaultShortVersion
Stephen Hinese55a4cc2016-11-18 17:12:38 -0800328 })
Stephen Hines755fe072018-01-24 19:58:36 -0800329 pctx.StaticVariable("ClangAsanLibDir", "${ClangBase}/linux-x86/${ClangVersion}/lib64/clang/${ClangShortVersion}/lib/linux")
Alistair Strachan777475c2016-08-26 12:55:49 -0700330
Jayant Chowdharye622d202017-02-01 19:19:52 -0800331 // These are tied to the version of LLVM directly in external/llvm, so they might trail the host prebuilts
332 // being used for the rest of the build process.
333 pctx.SourcePathVariable("RSClangBase", "prebuilts/clang/host")
334 pctx.SourcePathVariable("RSClangVersion", "clang-3289846")
335 pctx.SourcePathVariable("RSReleaseVersion", "3.8")
336 pctx.StaticVariable("RSLLVMPrebuiltsPath", "${RSClangBase}/${HostPrebuiltTag}/${RSClangVersion}/bin")
337 pctx.StaticVariable("RSIncludePath", "${RSLLVMPrebuiltsPath}/../lib64/clang/${RSReleaseVersion}/include")
338
Jeff Gaston734e3802017-04-10 15:47:24 -0700339 pctx.PrefixedExistentPathsForSourcesVariable("RsGlobalIncludes", "-I",
Colin Cross2a252be2017-05-01 17:37:24 -0700340 []string{
341 "external/clang/lib/Headers",
342 "frameworks/rs/script_api/include",
343 })
344
Dan Willemsen54daaf02018-03-12 13:24:09 -0700345 pctx.VariableFunc("CcWrapper", func(ctx android.PackageVarContext) string {
346 if override := ctx.Config().Getenv("CC_WRAPPER"); override != "" {
347 return override + " "
Alistair Strachan777475c2016-08-26 12:55:49 -0700348 }
Dan Willemsen54daaf02018-03-12 13:24:09 -0700349 return ""
Alistair Strachan777475c2016-08-26 12:55:49 -0700350 })
Ramy Medhat9a90fe52020-04-13 13:21:23 -0400351
Colin Cross77cdcfd2021-03-12 11:28:25 -0800352 pctx.StaticVariableWithEnvOverride("RECXXPool", "RBE_CXX_POOL", remoteexec.DefaultPool)
353 pctx.StaticVariableWithEnvOverride("RECXXLinksPool", "RBE_CXX_LINKS_POOL", remoteexec.DefaultPool)
354 pctx.StaticVariableWithEnvOverride("REClangTidyPool", "RBE_CLANG_TIDY_POOL", remoteexec.DefaultPool)
355 pctx.StaticVariableWithEnvOverride("RECXXLinksExecStrategy", "RBE_CXX_LINKS_EXEC_STRATEGY", remoteexec.LocalExecStrategy)
356 pctx.StaticVariableWithEnvOverride("REClangTidyExecStrategy", "RBE_CLANG_TIDY_EXEC_STRATEGY", remoteexec.LocalExecStrategy)
357 pctx.StaticVariableWithEnvOverride("REAbiDumperExecStrategy", "RBE_ABI_DUMPER_EXEC_STRATEGY", remoteexec.LocalExecStrategy)
358 pctx.StaticVariableWithEnvOverride("REAbiLinkerExecStrategy", "RBE_ABI_LINKER_EXEC_STRATEGY", remoteexec.LocalExecStrategy)
Colin Cross4d9c2d12016-07-29 12:48:20 -0700359}
360
361var HostPrebuiltTag = pctx.VariableConfigMethod("HostPrebuiltTag", android.Config.PrebuiltOS)