aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2022-03-08 15:12:47 -0800
committerColin Cross <ccross@android.com>2022-03-15 14:19:47 -0700
commitfc6603babfe85b094cfd743e2e60d7cbce35133e (patch)
treeac622b504d672fbb8a71f7b35cff965ed5ceffe8
parent7e37b457ae08d4a3f576bd830e3b3323b8d3c145 (diff)
downloadcpython2-fc6603babfe85b094cfd743e2e60d7cbce35133e.tar.gz
Tweak linux_glibc properties for musl builds in external/python/cpython2
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: I1738c5a0e89f5c686eda7fa63da3c2583540dca8
-rw-r--r--Android.bp15
1 files changed, 8 insertions, 7 deletions
diff --git a/Android.bp b/Android.bp
index 028957376a..b13d7e417d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -114,10 +114,17 @@ cc_defaults {
linux_glibc_x86: {
enabled: false,
},
+ linux_musl_x86: {
+ enabled: false,
+ },
linux_glibc_x86_64: {
local_include_dirs: ["linux_x86_64/pyconfig"],
cflags: ["-Werror"],
},
+ linux_musl_x86_64: {
+ local_include_dirs: ["linux_x86_64/pyconfig"],
+ cflags: ["-Werror"],
+ },
windows: {
enabled: false,
},
@@ -976,13 +983,7 @@ cc_library_static {
"Modules/_ctypes/libffi/src/x86/darwin64.S",
],
},
- linux_bionic: {
- local_include_dirs: ["linux_x86_64/libffi"],
- srcs: [
- "Modules/_ctypes/libffi/src/x86/unix64.S",
- ],
- },
- linux_glibc_x86_64: {
+ host_linux: {
local_include_dirs: ["linux_x86_64/libffi"],
srcs: [
"Modules/_ctypes/libffi/src/x86/unix64.S",