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

Commit c6dee372 authored by Stephen Hines's avatar Stephen Hines Committed by Gerrit Code Review
Browse files

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

parents 20258b55 9e86573f
Loading
Loading
Loading
Loading
+3 −5
Original line number Original line Diff line number Diff line
@@ -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