Skip to content

Commit

Permalink
Modify referenced environment variables.
Browse files Browse the repository at this point in the history
'CXX' is used instead of 'CC'.
'CXXFLAGS' is used instead of 'CFLAGS'.
  • Loading branch information
crimsonwoods committed Nov 24, 2013
1 parent caf4d63 commit 92916bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/toolchains/gcc.rake
Expand Up @@ -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'
Expand Down

0 comments on commit 92916bb

Please sign in to comment.