mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-19 18:24:16 +08:00
[Vendor] Cannot reuse opts[:cflags] if it has been deleted before.
This commit is contained in:
2
NEWS
2
NEWS
@@ -8,6 +8,8 @@
|
||||
* Fixed a regression with specifying external templates to `motion create'.
|
||||
* Fixed a bug which WeakRef.new would cause a crash when passed nil, true,
|
||||
false, Fixnum or Float object.
|
||||
* Fixed issue where `vendor_project' with `:static' did not reuse `:cflags'
|
||||
for the BridgeSupport generation.
|
||||
|
||||
= RubyMotion 2.22 =
|
||||
|
||||
|
||||
@@ -134,7 +134,7 @@ EOS
|
||||
bs_file = File.join(build_dir, File.basename(@path) + '.bridgesupport')
|
||||
if !File.exist?(bs_file) or headers.any? { |h| File.mtime(h) > File.mtime(bs_file) }
|
||||
FileUtils.mkdir_p File.dirname(bs_file)
|
||||
bs_cflags = (opts.delete(:bridgesupport_cflags) or opts.delete(:cflags) or '')
|
||||
bs_cflags = (opts.delete(:bridgesupport_cflags) or cflags)
|
||||
bs_exceptions = (opts.delete(:bridgesupport_exceptions) or [])
|
||||
@config.gen_bridge_metadata(platform, headers, bs_file, bs_cflags, bs_exceptions)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user