mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-18 07:29:20 +08:00
remove `i386' at :build:simulator task
This commit is contained in:
@@ -64,6 +64,9 @@ namespace :build do
|
||||
|
||||
desc "Build the simulator version"
|
||||
task :simulator do
|
||||
# No longer build for i386 by default.
|
||||
App.config.archs['iPhoneSimulator'].delete('i386') if App.config.archs['iPhoneSimulator'].include?('x86_64')
|
||||
|
||||
pre_build_actions('iPhoneSimulator')
|
||||
App.build('iPhoneSimulator')
|
||||
end
|
||||
@@ -300,7 +303,6 @@ end
|
||||
|
||||
desc "Create a .a static library"
|
||||
task :static do
|
||||
App.config.archs['iPhoneSimulator'] << 'i386'
|
||||
libs = %w{iPhoneSimulator iPhoneOS}.map do |platform|
|
||||
'"' + App.build(platform, :static => true) + '"'
|
||||
end
|
||||
|
||||
@@ -52,9 +52,8 @@ module Motion; module Project;
|
||||
|
||||
def archs
|
||||
@archs ||= begin
|
||||
# No longer build for i386 and armv7s by default.
|
||||
# No longer build for armv7s by default.
|
||||
archs = super
|
||||
archs['iPhoneSimulator'].delete('i386') if archs['iPhoneSimulator'].include?('x86_64')
|
||||
archs['iPhoneOS'].delete('armv7s')
|
||||
archs
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user