diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-10 13:29:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-10 13:29:23 +0000 |
commit | aceb11dff4b3c05d027df664986515a89be1aac6 (patch) | |
tree | fff95e29bbaa3314d11154f8e743edad70fcd084 /win32/Makefile.sub | |
parent | 6f636adad0b0e8c8aabf9739673df7c48b446099 (diff) | |
download | ruby-aceb11dff4b3c05d027df664986515a89be1aac6.tar.gz |
mkmf.rb: fix werror option
* lib/mkmf.rb (try_compile): pass the given werror flag to try_do
to check if stderr is empty.
* lib/mkmf.rb (try_cflags, try_ldflags): default werror to true.
* win32/Makefile.sub (WERRORFLAG): remove useless option. VC does
not make warnings of unknown command option an error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/Makefile.sub')
-rw-r--r-- | win32/Makefile.sub | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 02ec002417..b8bd25bd31 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -208,7 +208,7 @@ WARNFLAGS = -W2 -wd4996 -we4028 -we4142 WARNFLAGS = -W2 !endif !endif -WERRORFLAG = -WX -we9002 +WERRORFLAG = -WX !if !defined(CFLAGS) CFLAGS = $(RUNTIMEFLAG) $(DEBUGFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(PROCESSOR_FLAG) $(COMPILERFLAG) !endif |