Method: #try_compiler_option
- Defined in:
- lib/mkmf-gnome2.rb
#try_compiler_option(opt, &block) ⇒ Object
56 57 58 59 60 61 62 63 64 65 |
# File 'lib/mkmf-gnome2.rb', line 56 def try_compiler_option(opt, &block) checking_for "#{opt} option to compiler" do if try_compile '', opt + " -Werror", &block $CFLAGS += " #{opt}" true else false end end end |