add CFLAGS as a fallback from CXXFLAGS; ref #1594

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-11-25 09:51:44 +09:00
parent 33698d7349
commit f5bd87b9e6
+1 -1
View File
@@ -11,7 +11,7 @@ MRuby::Toolchain.new(:gcc) do |conf|
[conf.cxx].each do |cxx|
cxx.command = ENV['CXX'] || 'g++'
cxx.flags = [ENV['CXXFLAGS'] || %w(-g -O3 -Wall -Werror-implicit-function-declaration)]
cxx.flags = [ENV['CXXFLAGS'] || ENV['CFLAGS'] || %w(-g -O3 -Wall -Werror-implicit-function-declaration)]
cxx.include_paths = ["#{MRUBY_ROOT}/include"]
cxx.defines = %w(DISABLE_GEMS)
cxx.option_include_path = '-I%s'