aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJooyung Han <jooyung@google.com>2023-12-29 16:53:09 +0900
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-01-04 00:53:51 +0000
commitc24e071b959a23a107014846970bcd83ac39d293 (patch)
tree7b392c537be1ef7b017be56b2daa7a06bf0a6255
parentec730054c546cd857850ab242d78c72382338c8e (diff)
downloadbuild-c24e071b959a23a107014846970bcd83ac39d293.tar.gz
Pass LOCAL_MIN_SDK_VERSION to clang triple
Like soong modules, pass LOCAL_MIN_SDK_VERSION to clang when it's set. Ignore-AOSP-First: this is for 24q1-release. Will cherry-pick to aosp if necessary Bug: 317676192 Test: build hostapd/wpa_supplicant commands should have android34 triple (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f6525fab4203591441359c1147037a40052a72b7) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6e2b4d808ba2f9b89ef9acf058246e2edff22f1a) Merged-In: I48928e54417f47f2e0c2417f04e5893764c3edb9 Change-Id: I48928e54417f47f2e0c2417f04e5893764c3edb9
-rw-r--r--core/binary.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/binary.mk b/core/binary.mk
index 8c107bdb26..7998a5ac34 100644
--- a/core/binary.mk
+++ b/core/binary.mk
@@ -274,6 +274,13 @@ ifneq ($(LOCAL_SDK_VERSION),)
endif
endif
+ifneq ($(LOCAL_MIN_SDK_VERSION),)
+ ifdef LOCAL_IS_HOST_MODULE
+ $(error $(LOCAL_PATH): LOCAL_MIN_SDK_VERSION cannot be used in host module)
+ endif
+ my_api_level := $(LOCAL_MIN_SDK_VERSION)
+endif
+
ifeq ($(NATIVE_COVERAGE),true)
ifndef LOCAL_IS_HOST_MODULE
my_ldflags += -Wl,--wrap,getenv