diff options
author | Dan Willemsen <dwillemsen@google.com> | 2021-01-21 15:23:54 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2021-01-21 15:24:46 -0800 |
commit | bc4895ed02ec39afea2c7675d83fe9456a01f4bf (patch) | |
tree | 53a4be0243777e390ed27d70f2c1d82816264f37 | |
parent | c1637296ddda1a5f5cb1254e388cbc75f94b0262 (diff) | |
download | bison-bc4895ed02ec39afea2c7675d83fe9456a01f4bf.tar.gz |
Fix mac builds due to unguarded-availability error
Just bump our required base version up, as developing Android already
effectively requires 10.13, and these tools won't be distributed to
end-user developers (like fastboot/adb/aapt/etc are)
external/bison/lib/gethrxtime.c:49:9: warning: 'clock_gettime' is only available on macOS 10.12 or newer [-Wunguarded-availability]
Test: build
Change-Id: I636007e942854274ee3705a48b4f793e1cd96b71
-rw-r--r-- | Android.bp | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -28,6 +28,17 @@ cc_defaults { "darwin-lib", "lib", ], + + // This isn't being distributed to end-users, so bump up our machine + // requirements. + cflags: [ + "-mmacosx-version-min=10.13", + "-UMACOSX_DEPLOYMENT_TARGET", + "-DMACOSX_DEPLOYMENT_TARGET=10.13", + ], + ldflags: [ + "-mmacosx-version-min=10.13", + ], }, linux: { local_include_dirs: [ |