blob: 7d0fe6a45e0e7990831bfff014bc9471c56d3dea (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
MRuby::Toolchain.new(:clang) do |conf, _params|
toolchain :gcc
[conf.cc, conf.objc, conf.asm].each do |cc|
cc.command = ENV['CC'] || 'clang'
cc.flags << '-Wzero-length-array' unless ENV['CFLAGS']
end
conf.cxx.command = ENV['CXX'] || 'clang++'
conf.cxx.flags << '-Wzero-length-array' unless ENV['CXXFLAGS'] || ENV['CFLAGS']
conf.linker.command = ENV['LD'] || ENV['CXX'] || ENV['CC'] || 'clang'
end
|