summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2022-03-29 20:46:45 -0700
committer Colin Cross <ccross@android.com> 2022-03-29 22:42:11 -0700
commit5b588dda7f1a3ec41396510eec860f17a2ad3160 (patch)
treef7739cde435fe6bb4a579caaf7f32254cb31c4e0 /Android.bp
parented12a04a3eaa59514a5dc43eedc48c39d0ddc1b3 (diff)
Tweak linux_glibc properties for musl builds in build/soong
For convenience, builds against musl libc currently use the linux_glibc properties because they are almost always linux-specific and not glibc-specific. In preparation for removing this hack, tweak the linux_glibc properties by either moving them to host_linux, which will apply to linux_glibc, linux_musl and linux_bionic, or by setting appropriate musl or linux_musl properties. Properties that must not be repeated while musl uses linux_musl and also still uses the linux_glibc properties are moved to glibc properties, which don't apply to musl. Whether these stay as glibc properties or get moved back to linux_glibc later once the musl hack is removed is TBD. Bug: 223257095 Test: m checkbuild Test: m USE_HOST_MUSL=true host-native Change-Id: I04833c36fe267d218257c8910056ed4106ca8f3b
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 380a388b2..42a8e5c91 100644
--- a/Android.bp
+++ b/Android.bp
@@ -61,6 +61,9 @@ cc_genrule {
linux_bionic: {
enabled: true,
},
+ linux_musl: {
+ enabled: false,
+ },
linux_glibc: {
enabled: false,
},
@@ -82,6 +85,9 @@ cc_genrule {
linux_bionic: {
enabled: true,
},
+ linux_musl: {
+ enabled: false,
+ },
linux_glibc: {
enabled: false,
},