diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-12-22 22:49:14 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-12-22 22:49:14 +0900 |
| commit | f6c07b883550b4e78e0922eec08458307d623b8c (patch) | |
| tree | 7ea6aa7974120c0fe69feaa70a8a2c89d53988da | |
| parent | a154d657aed72f2f188920b2fbc54c485b563548 (diff) | |
| parent | 129a804136cea007a223c3860ba9e30c76a0a814 (diff) | |
| download | mruby-f6c07b883550b4e78e0922eec08458307d623b8c.tar.gz mruby-f6c07b883550b4e78e0922eec08458307d623b8c.zip | |
Merge pull request #4196 from dearblue/add-Wundef-cflags
Append cflags for undefined macro
| -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 e0eb36f26..4929811c4 100644 --- a/tasks/toolchains/gcc.rake +++ b/tasks/toolchains/gcc.rake @@ -1,7 +1,7 @@ MRuby::Toolchain.new(:gcc) do |conf, _params| [conf.cc, conf.objc, conf.asm].each do |cc| cc.command = ENV['CC'] || 'gcc' - cc.flags = [ENV['CFLAGS'] || %w(-g -std=gnu99 -O3 -Wall -Werror-implicit-function-declaration -Wdeclaration-after-statement -Wwrite-strings)] + cc.flags = [ENV['CFLAGS'] || %w(-g -std=gnu99 -O3 -Wall -Werror-implicit-function-declaration -Wdeclaration-after-statement -Wwrite-strings -Wundef)] cc.defines = %w(DISABLE_GEMS) cc.option_include_path = '-I%s' cc.option_define = '-D%s' @@ -12,7 +12,7 @@ MRuby::Toolchain.new(:gcc) do |conf, _params| [conf.cxx].each do |cxx| cxx.command = ENV['CXX'] || 'g++' - cxx.flags = [ENV['CXXFLAGS'] || ENV['CFLAGS'] || %w(-g -O3 -Wall -Werror-implicit-function-declaration)] + cxx.flags = [ENV['CXXFLAGS'] || ENV['CFLAGS'] || %w(-g -O3 -Wall -Werror-implicit-function-declaration -Wundef)] cxx.defines = %w(DISABLE_GEMS) cxx.option_include_path = '-I%s' cxx.option_define = '-D%s' |
