Merge "Use llvm-{strip,objcopy} by default"

This commit is contained in:
Stephen Hines
2019-02-05 03:13:14 +00:00
committed by Gerrit Code Review

View File

@@ -103,11 +103,9 @@ ifeq (,$(filter no_debuglink mini-debug-info,$(my_strip_module)))
endif endif
endif endif
ifeq ($(my_use_clang_lld),true) ifeq ($($(my_prefix)OS),darwin)
# b/80093681: GNU strip and objcopy --{add,remove}-section have bug in handling # llvm-strip does not support Darwin Mach-O yet.
# GNU_RELRO segment of files lnked by clang lld; so they are replaced my_strip_args += --use-gnu-strip
# by llvm-strip and llvm-objcopy here.
my_strip_args += --use-llvm-strip
endif endif
valid_strip := mini-debug-info keep_symbols true no_debuglink valid_strip := mini-debug-info keep_symbols true no_debuglink