File: clang.rake

package info (click to toggle)
mruby 3.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,584 kB
  • sloc: ansic: 51,933; ruby: 29,510; yacc: 7,077; cpp: 517; makefile: 51; sh: 42
file content (8 lines) | stat: -rw-r--r-- 289 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
MRuby::Toolchain.new(:clang) do |conf, _params|
  toolchain :gcc, default_command: 'clang'

  [conf.cc, conf.objc, conf.asm].each do |cc|
    cc.flags << '-Wzero-length-array' unless ENV['CFLAGS']
  end
  conf.cxx.flags << '-Wzero-length-array' unless ENV['CXXFLAGS'] || ENV['CFLAGS']
end