diff options
| author | crimsonwoods <[email protected]> | 2013-11-23 21:47:47 -0800 |
|---|---|---|
| committer | crimsonwoods <[email protected]> | 2013-11-23 21:47:47 -0800 |
| commit | 92916bb4a6fb0065c1dc54b52b8ce51a1ac3eb17 (patch) | |
| tree | 93825a20d8c0ef7f1fe4f4e9e50e906ed2e35dbf /tasks/toolchains | |
| parent | caf4d6322925d4b0aa2ad4810df812603cec508b (diff) | |
| download | mruby-92916bb4a6fb0065c1dc54b52b8ce51a1ac3eb17.tar.gz mruby-92916bb4a6fb0065c1dc54b52b8ce51a1ac3eb17.zip | |
Modify referenced environment variables.
'CXX' is used instead of 'CC'.
'CXXFLAGS' is used instead of 'CFLAGS'.
Diffstat (limited to 'tasks/toolchains')
| -rw-r--r-- | tasks/toolchains/gcc.rake | 4 |
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' |
