From 7a4dacf7245c484f4b602f02ccd470f04535dc62 Mon Sep 17 00:00:00 2001 From: Tianjie Xu Date: Sat, 17 Feb 2018 21:58:54 -0800 Subject: Disable building libapplypatch on mac The sdk_mac on build server fails with the error: bootable/recovery/applypatch/freecache.cpp:23:10: fatal error: 'sys/statfs.h' file not found So we will disable libapplypatch on mac. Test: the library still builds on linux; and check the other host targets in the same cl. Change-Id: Ie4a30708726e51c810f7ad7f1085d38154076cca --- applypatch/Android.bp | 6 ++++++ otafault/Android.bp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/applypatch/Android.bp b/applypatch/Android.bp index d3efa152b..cb0b36746 100644 --- a/applypatch/Android.bp +++ b/applypatch/Android.bp @@ -57,6 +57,12 @@ cc_library_static { "libotautil", "libz", ], + + target: { + darwin: { + enabled: false, + }, + }, } cc_library_static { diff --git a/otafault/Android.bp b/otafault/Android.bp index 30d561015..b39d5bee2 100644 --- a/otafault/Android.bp +++ b/otafault/Android.bp @@ -39,6 +39,12 @@ cc_library_static { "-Wthread-safety", "-Wthread-safety-negative", ], + + target: { + darwin: { + enabled: false, + }, + }, } cc_test { -- cgit v1.2.3