Skip to content

Instantly share code, notes, and snippets.

@zzak
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zzak/6d747382daf669849079 to your computer and use it in GitHub Desktop.
Save zzak/6d747382daf669849079 to your computer and use it in GitHub Desktop.
MRuby::CrossBuild.new('x86_64-apple-darwin14') do |conf|
toolchain :clang
# include the default GEMs
conf.gembox 'default'
[conf.cc, conf.objc, conf.asm].each do |cc|
cc.command = 'x86_64-apple-darwin14-clang'
end
conf.cxx.command = 'x86_64-apple-darwin14-clang++'
conf.linker.command = 'x86_64-apple-darwin14-clang'
conf.archiver.command = 'x86_64-apple-darwin14-ar'
MRuby.targets["host"].gems.each do |mrbgem|
conf.gem mrbgem.dir
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment