Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 358875fb authored by Jooyung Han's avatar Jooyung Han
Browse files

Pass LOCAL_MIN_SDK_VERSION to clang triple

Like soong modules, pass LOCAL_MIN_SDK_VERSION to clang when it's set.

Bug: 317676192
Test: manual check (set LOCAL_MIN_SDK_VERSION as 34 for wpa_supplicant
  and see if generated build commands has android34)
Change-Id: I48928e54417f47f2e0c2417f04e5893764c3edb9
parent 2e137a99
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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