am 7a6a9c35
: SDK: Strip llvm-rs-cc in SDK.
* commit '7a6a9c3528d997a1cb3a03eca3c0c11b14792449': SDK: Strip llvm-rs-cc in SDK.
This commit is contained in:
commit
3e57da17d1
1 changed files with 10 additions and 1 deletions
|
@ -1370,6 +1370,12 @@ $(INTERNAL_SDK_TARGET): PRIVATE_INPUT_FILES := $(sdk_atree_files)
|
|||
#
|
||||
#SDK_GNU_ERROR := true
|
||||
|
||||
ifeq ($(HOST_OS),darwin)
|
||||
HOST_STRIP_SDK_LLVM := strip
|
||||
else
|
||||
HOST_STRIP_SDK_LLVM := strip --strip-all
|
||||
endif
|
||||
|
||||
$(INTERNAL_SDK_TARGET): $(deps)
|
||||
@echo "Package SDK: $@"
|
||||
$(hide) rm -rf $(PRIVATE_DIR) $@
|
||||
|
@ -1395,6 +1401,9 @@ $(INTERNAL_SDK_TARGET): $(deps)
|
|||
cp -f $(target_notice_file_txt) \
|
||||
$(PRIVATE_DIR)/platforms/android-$(PLATFORM_VERSION)/images/NOTICE.txt && \
|
||||
cp -f $(tools_notice_file_txt) $(PRIVATE_DIR)/tools/NOTICE.txt && \
|
||||
if [ -f $(PRIVATE_DIR)/platform-tools/llvm-rs-cc ]; then \
|
||||
$(HOST_STRIP_SDK_LLVM) $(PRIVATE_DIR)/platform-tools/llvm-rs-cc; \
|
||||
fi && \
|
||||
HOST_OUT_EXECUTABLES=$(HOST_OUT_EXECUTABLES) HOST_OS=$(HOST_OS) \
|
||||
development/build/tools/sdk_clean.sh $(PRIVATE_DIR) && \
|
||||
chmod -R ug+rwX $(PRIVATE_DIR) && \
|
||||
|
|
Loading…
Reference in a new issue