Skip to content

Commit

Permalink
Make conditionally available NDK API feature opt-in
Browse files Browse the repository at this point in the history
This better reflects its soft launch.
See discussion in  bazelbuild#27
  • Loading branch information
cpsauer committed Nov 19, 2022
1 parent 8a254a0 commit 4462b60
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ndk_cc_toolchain_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -532,14 +532,11 @@ def ndk_cc_toolchain_config(
enabled = True,
),

# By default, allow use of APIs above the api_level, so long as the use is
# Optionally, allow use of APIs above the api_level, so long as the use is
# protected with a call to __builtin_available(android <version>, *).
# For more, see https://android.googlesource.com/platform/ndk/+/master/docs/BuildSystemMaintainers.md#weak-symbols-for-api-definitions
# This takes effect with NDK r26 and greater.
feature(
name = "android_ndk_conditional_api_availabilty",
enabled = True,
),
feature(name = "android_ndk_conditional_api_availabilty"),

# User-settable feature controls warning aggressiveness for compilation.
feature(name = "warnings_as_errors"),
Expand Down

0 comments on commit 4462b60

Please sign in to comment.