[DEBUG] strip Ok on MacOs (missing -u flag)

This commit is contained in:
Edouard DUPIN 2015-10-21 21:40:59 +02:00
parent 16c019ac5b
commit fc6493f441

View File

@ -127,9 +127,15 @@ def link(file, binary, target, depancy, flags, name, basic_path, static=False):
# get the file size of the non strip file # get the file size of the non strip file
originSize = tools.file_size(file_dst); originSize = tools.file_size(file_dst);
debug.print_element("SharedLib(strip)", name, "", "") debug.print_element("SharedLib(strip)", name, "", "")
cmdLineStrip=tools.list_to_str([ if target.name == "MacOs":
target.strip, cmdLineStrip=tools.list_to_str([
file_dst]) target.strip,
"-u",
file_dst])
else:
cmdLineStrip=tools.list_to_str([
target.strip,
file_dst])
multiprocess.run_command(cmdLineStrip, store_output_file=file_warning) multiprocess.run_command(cmdLineStrip, store_output_file=file_warning)
# get the stip size of the binary # get the stip size of the binary
stripSize = tools.file_size(file_dst) stripSize = tools.file_size(file_dst)