summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Android.bp12
1 files changed, 8 insertions, 4 deletions
diff --git a/Android.bp b/Android.bp
index 7ba35635e..1eae90f38 100644
--- a/Android.bp
+++ b/Android.bp
@@ -150,10 +150,6 @@ cc_binary {
// http://llvm.org/bugs/show_bug.cgi?id=21421
"-O0",
],
- ldflags: [
- // This makes the tests run a little faster.
- "-Wl,--strip-all",
- ],
rtti: true,
local_include_dirs: [
"test/support",
@@ -168,6 +164,14 @@ cc_binary {
},
compile_multilib: "both",
host_supported: true,
+ target: {
+ linux: {
+ ldflags: [
+ // This makes the tests run a little faster.
+ "-Wl,--strip-all",
+ ],
+ },
+ },
gnu_extensions: false,
cpp_std: "c++17",
}