mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-12 00:35:25 +08:00
print an error in case we try to build for a certain RubyMotion platform that isn't supported (data directory doesn't exist)
This commit is contained in:
committed by
Watson
parent
00b3b510dd
commit
217c82f020
@@ -29,6 +29,10 @@ module Motion; module Project;
|
||||
|
||||
def build(config, platform, opts)
|
||||
datadir = config.datadir
|
||||
unless File.exist?(File.join(datadir, platform))
|
||||
$stderr.puts "This version of RubyMotion does not support `#{platform}'"
|
||||
exit 1
|
||||
end
|
||||
archs = config.archs[platform]
|
||||
|
||||
static_library = opts.delete(:static)
|
||||
|
||||
Reference in New Issue
Block a user