OSDN Git Service

simpleperf: fix mac build.
authorYabin Cui <yabinc@google.com>
Thu, 31 Jan 2019 19:52:19 +0000 (11:52 -0800)
committerYabin Cui <yabinc@google.com>
Thu, 31 Jan 2019 19:57:52 +0000 (11:57 -0800)
Bug: none
Test: build simpleperf on mac.
Change-Id: I9d839fc9779321aa5007e745d4aeaba48bb9fc53

simpleperf/Android.bp

index 34ec5e7..2bcc285 100644 (file)
@@ -56,6 +56,11 @@ cc_defaults {
     ],
     target: {
         // Required for LLVM.
+        darwin: {
+            host_ldlibs: [
+                "-lncurses",
+            ],
+        },
         linux_glibc: {
             host_ldlibs: [
                 "-lncurses",
@@ -211,6 +216,11 @@ cc_defaults {
                 "libunwindstack",
             ],
         },
+        darwin: {
+            host_ldlibs: [
+                "-lncurses",
+            ],
+        },
         linux_glibc: {
             host_ldlibs: [
                 "-lncurses",