summaryrefslogtreecommitdiffhomepage
path: root/tasks/toolchains
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/toolchains')
-rw-r--r--tasks/toolchains/gcc.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/toolchains/gcc.rake b/tasks/toolchains/gcc.rake
index 27917d1c5..cacce1e84 100644
--- a/tasks/toolchains/gcc.rake
+++ b/tasks/toolchains/gcc.rake
@@ -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'