[Groonga-commit] ranguba/rroonga at 6bc8add [master] extconf: add --enable-untyped-data-warning option

Back to archive index

Hiroshi Hatake null+****@clear*****
Mon Oct 6 10:38:51 JST 2014


Hiroshi Hatake	2014-10-06 10:38:51 +0900 (Mon, 06 Oct 2014)

  New Revision: 6bc8add064f176e04957efce635905d318c9f7c3
  https://github.com/ranguba/rroonga/commit/6bc8add064f176e04957efce635905d318c9f7c3

  Message:
    extconf: add --enable-untyped-data-warning option
    
    RData is marked deprecated.
    But, by default, not warning generates.
    This option set RUBY_UNTYPED_DATA_WARNING=1 to generate deprecated warnings.
    Let's checking deprecation!
    
    ref: http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?revision=47730&view=revision

  Modified files:
    ext/groonga/extconf.rb

  Modified: ext/groonga/extconf.rb (+8 -0)
===================================================================
--- ext/groonga/extconf.rb    2014-10-05 13:50:29 +0900 (16d4b86)
+++ ext/groonga/extconf.rb    2014-10-06 10:38:51 +0900 (0325030)
@@ -313,6 +313,14 @@ checking_for(checking_message("--enable-debug-build option")) do
   enable_debug_build
 end
 
+checking_for(checking_message("--enable-untyped-data-warning option")) do
+  enable_check_untyped_data = enable_config("untyped-data-warning", false)
+  if enable_check_untyped_data
+    $defs << "-DRUBY_UNTYPED_DATA_WARNING"
+  end
+  enable_check_untyped_data
+end
+
 if ENV["INSTALL_RB"] == "yes"
   $INSTALLFILES ||= []
   $INSTALLFILES << ["../../lib/**/*.rb", "$(RUBYLIBDIR)", "../../lib"]
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index