Build with static libc++

Summary:
This avoids having to perform gymnastics like in
https://github.com/facebook/react-native/pull/26697

Reviewed By: jknoxville

Differential Revision: D17735954

fbshipit-source-id: 507548aab89309beeb228b104a24af8acd10ce9a
This commit is contained in:
Pascal Hartig
2019-10-03 04:38:08 -07:00
committed by Facebook Github Bot
parent 447e918607
commit 975b52d26b
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ android {
externalNativeBuild {
cmake {
arguments '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=c++_shared'
arguments '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=c++_static'
targets 'flipper', 'event_shared', 'event_extra_shared', 'event_core_shared'
}
}

View File

@@ -16,7 +16,7 @@ android {
targetSdkVersion rootProject.targetSdkVersion
externalNativeBuild {
cmake {
arguments '-DANDROID_TOOLCHAIN=clang'
arguments '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=c++_static'
}
}
}