aboutsummaryrefslogtreecommitdiff
path: root/soong/regen.sh
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2022-07-19 14:30:03 -0700
committerColin Cross <ccross@android.com>2022-07-19 15:41:29 -0700
commit027f7afa228990e5f5c3c31833697a6f64e990fa (patch)
tree3471e7b6254d8b73273f99088b927b1bba9529b2 /soong/regen.sh
parent721fbffb4c8d131ae18d7a5103e462686a862e27 (diff)
downloadm4-027f7afa228990e5f5c3c31833697a6f64e990fa.tar.gz
Use the compiler architecture defines instead of overriding them. Bug: 236052820 Test: cross compiles Test: soong/regen.sh Test: soong/regen.sh --musl Change-Id: I656da15f7650664eac1acea3ba12d8d3c3c91220
Diffstat (limited to 'soong/regen.sh')
-rwxr-xr-xsoong/regen.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/soong/regen.sh b/soong/regen.sh
index 77089d7..d15072e 100755
--- a/soong/regen.sh
+++ b/soong/regen.sh
@@ -94,9 +94,7 @@ cc_defaults {
END
${ANDROID_BUILD_TOP}/prebuilts/build-tools/$UNAME-x86/bin/bpfmt -w ../Android.bp
-if [ $DIR = "darwin" ]; then
- sed -ibak 's%#define __x86_64__ 1%/* compiler-set */%' lib/config.h
-fi
+sed -ibak 's%#define __x86_64__ 1%/* compiler-set */%' lib/config.h
cd lib
find . -name '*.h' | xargs -IX cp X ../../X