mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add C++/Objective-C init in toolchains
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
MRuby::Toolchain.new(:clang) do |conf|
|
||||
toolchain :gcc
|
||||
|
||||
conf.cc.command = ENV['CC'] || 'clang'
|
||||
[conf.cc, conf.cxx, conf.objc].each do |cc|
|
||||
cc.command = ENV['CC'] || 'clang'
|
||||
end
|
||||
conf.linker.command = ENV['LD'] || 'clang'
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
MRuby::Toolchain.new(:gcc) do |conf|
|
||||
conf.cc do |cc|
|
||||
[conf.cc, conf.cxx, conf.objc].each do |cc|
|
||||
cc.command = ENV['CC'] || 'gcc'
|
||||
cc.flags = [ENV['CFLAGS'] || %w(-g -O3 -Wall -Werror-implicit-function-declaration)]
|
||||
cc.include_paths = ["#{root}/include"]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
MRuby::Toolchain.new(:vs2012) do |conf|
|
||||
conf.cc do |cc|
|
||||
[conf.cc, conf.cxx].each do |cc|
|
||||
cc.command = ENV['CC'] || 'cl.exe'
|
||||
cc.flags = [ENV['CFLAGS'] || %w(/c /nologo /W3 /D_DEBUG /MDd /Zi /Od /RTC1 /DDISABLE_GEMS /DHAVE_STRING_H /DNO_GETTIMEOFDAY /D_CRT_SECURE_NO_WARNINGS)]
|
||||
cc.include_paths = ["#{root}/include"]
|
||||
|
||||
Reference in New Issue
Block a user