Skip to content

Commit 4462b60

Browse files
committed
Make conditionally available NDK API feature opt-in
This better reflects its soft launch. See discussion in bazelbuild#27
1 parent 8a254a0 commit 4462b60

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ndk_cc_toolchain_config.bzl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -532,14 +532,11 @@ def ndk_cc_toolchain_config(
532532
enabled = True,
533533
),
534534

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

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

0 commit comments

Comments
 (0)