Add C++/Objective-C init in toolchains

This commit is contained in:
Yuichiro MASUI
2013-01-22 14:06:59 +09:00
parent cc2e4e73de
commit f6edd3065c
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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"]