osx: only strip x86_64 symbols

This commit is contained in:
Laurent Sansonetti
2013-08-09 16:44:28 +02:00
parent 01becf04a7
commit 9e8b17013c
3 changed files with 10 additions and 1 deletions

View File

@@ -414,7 +414,7 @@ EOS
# Strip all symbols. Only in distribution mode.
if main_exec_created and config.distribution_mode
App.info "Strip", main_exec
sh "#{config.locate_binary('strip')} \"#{main_exec}\""
sh "#{config.locate_binary('strip')} #{config.strip_args} \"#{main_exec}\""
end
end

View File

@@ -287,6 +287,10 @@ module Motion; module Project
File.join(motiondir, 'data', template.to_s, target)
end
def strip_args
''
end
def print_crash_message
$stderr.puts ''
$stderr.puts '=' * 80

View File

@@ -116,6 +116,11 @@ module Motion; module Project;
}.merge(generic_info_plist).merge(dt_info_plist).merge(info_plist))
end
def strip_args
# We only strip x86_64 symbols, because attempting to strip i386 symbols results in a 'symbols referenced by indirect symbol table entries that can't be stripped' error.
'-arch x86_64'
end
def supported_sdk_versions(versions)
osx_version = `sw_vers -productVersion`.strip
versions.reverse.find { |vers|