File: clang.rake

package info (click to toggle)
nghttp2 1.68.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,592 kB
  • sloc: ansic: 104,233; cpp: 55,792; ruby: 30,108; yacc: 7,083; sh: 4,643; makefile: 1,506; python: 806
file content (8 lines) | stat: -rw-r--r-- 289 bytes parent folder | download | duplicates (12)
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