From 8d3c6cda21ada5a7dc5fc60ac82cff08eb9f76dd Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Thu, 8 Nov 2018 15:12:19 -0800 Subject: [PATCH] LLVM_RTLIB_PATH should not hard code linux The path is incorrect on Darwin. Changed to use $(HOST_OS) instead. Fixes Darwin build. Bug: 29275768 Test: Forrest Change-Id: I164306ad2237bce86baf37d3291622a709bfe8f3 --- core/clang/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/clang/config.mk b/core/clang/config.mk index 63582c2c78..df9cad2e77 100644 --- a/core/clang/config.mk +++ b/core/clang/config.mk @@ -1,6 +1,6 @@ ## Clang configurations. -LLVM_RTLIB_PATH := $(LLVM_PREBUILTS_PATH)/../lib64/clang/$(LLVM_RELEASE_VERSION)/lib/linux/ +LLVM_RTLIB_PATH := $(LLVM_PREBUILTS_PATH)/../lib64/clang/$(LLVM_RELEASE_VERSION)/lib/$(HOST_OS)/ define convert-to-clang-flags $(strip $(filter-out $(CLANG_CONFIG_UNKNOWN_CFLAGS),$(1)))