diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-11-25 09:51:44 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-11-25 09:51:44 +0900 |
| commit | f5bd87b9e6d0d8a84cf866b4847c1416e4f5c622 (patch) | |
| tree | 8ca2f6c08bd8dc4a8cce6f0fa2d6c84f6fabc4ba /tasks/toolchains | |
| parent | 33698d7349aa63e9651fb058e38cf54cf5a5bd1d (diff) | |
| download | mruby-f5bd87b9e6d0d8a84cf866b4847c1416e4f5c622.tar.gz mruby-f5bd87b9e6d0d8a84cf866b4847c1416e4f5c622.zip | |
add CFLAGS as a fallback from CXXFLAGS; ref #1594
Diffstat (limited to 'tasks/toolchains')
| -rw-r--r-- | tasks/toolchains/gcc.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/toolchains/gcc.rake b/tasks/toolchains/gcc.rake index cacce1e84..dec502732 100644 --- a/tasks/toolchains/gcc.rake +++ b/tasks/toolchains/gcc.rake @@ -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' |
