Commit 92916bb4 authored by crimsonwoods's avatar crimsonwoods

Modify referenced environment variables.

'CXX' is used instead of 'CC'.
'CXXFLAGS' is used instead of 'CFLAGS'.
parent caf4d632
......@@ -10,8 +10,8 @@ MRuby::Toolchain.new(:gcc) do |conf|
end
[conf.cxx].each do |cxx|
cxx.command = ENV['CC'] || 'g++'
cxx.flags = [ENV['CFLAGS'] || %w(-g -O3 -Wall -Werror-implicit-function-declaration)]
cxx.command = ENV['CXX'] || 'g++'
cxx.flags = [ENV['CXXFLAGS'] || %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'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment