summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-10 02:44:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-10 02:44:12 +0000
commit54264f534a33abde00a7297d54f75e5cc1dee934 (patch)
tree1e94619e3ef3c67070261ca24186ce18c6ee19dd /lib
parent14d10e054ff451f26b5e4ad658f8e44b2d0fa8dd (diff)
ext/date: reject unknown compiler option
* ext/date/extconf.rb: check warnings. * lib/mkmf.rb (try_cflags): pass options to try_compile. * win32/Makefile.sub (WERRORFLAG): make unknown command line options an error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/mkmf.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 67af386bfa..ba3240d0a3 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -621,8 +621,8 @@ MSG
$CFLAGS = cflags unless ret
end
- def try_cflags(flags)
- try_compile(MAIN_DOES_NOTHING, flags)
+ def try_cflags(flags, *opts)
+ try_compile(MAIN_DOES_NOTHING, flags, *opts)
end
def with_ldflags(flags)