Skip to content

Instantly share code, notes, and snippets.

@alexcohn
Last active June 1, 2022 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexcohn/05dc585c79231b39601c75849351029d to your computer and use it in GitHub Desktop.
Save alexcohn/05dc585c79231b39601c75849351029d to your computer and use it in GitHub Desktop.
fix cuttlefish build for ARM64
git -C external/webrtc diff
diff --git a/Android.bp b/Android.bp
index 204ee672ef..3a18fe095a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -93,10 +93,10 @@ cc_defaults {
},
arch: {
arm: {
- cflags: ["-DWEBRTC_HAS_NEON"],
+ cflags: ["-DWEBRTC_HAS_NEON", "-DWEBRTC_ARCH_ARM"],
},
arm64: {
- cflags: ["-DWEBRTC_HAS_NEON"],
+ cflags: ["-DWEBRTC_HAS_NEON", "-DWEBRTC_ARCH_ARM64"],
},
},
visibility: [
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment