diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-18 14:19:16 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-18 14:19:16 +0000 |
commit | 28849ce257de28993e4786ed102a6f1f0433278e (patch) | |
tree | 6f80313e09237e2aa60624e25af8e86d1d9bd739 /ext | |
parent | 340390093b1db331630d227edbd0f32d2d2b882a (diff) | |
download | ruby-28849ce257de28993e4786ed102a6f1f0433278e.tar.gz |
ext/rbconfig/sizeof: move to an extension library
* common.mk, ext/rbconfig/sizeof: move RbConfig::SIZEOF to an
extension library to get rid of annoying nmake VPATH rule.
* inits.c (rb_call_inits), miniinit.c (Init_sizes): RbConfig::SIZEOF
is no loger built-in.
* template/sizes.c.tmpl (Init_sizeof): rename initialization function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/rbconfig/sizeof/depend | 3 | ||||
-rw-r--r-- | ext/rbconfig/sizeof/extconf.rb | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ext/rbconfig/sizeof/depend b/ext/rbconfig/sizeof/depend new file mode 100644 index 0000000000..360b3386d3 --- /dev/null +++ b/ext/rbconfig/sizeof/depend @@ -0,0 +1,3 @@ +sizes.c: $(top_srcdir)/tool/generic_erb.rb $(top_srcdir)/template/sizes.c.tmpl $(top_srcdir)/configure.in + $(Q) $(RUBY) $(top_srcdir)/tool/generic_erb.rb --output=$@ \ + $(top_srcdir)/template/sizes.c.tmpl $(top_srcdir)/configure.in diff --git a/ext/rbconfig/sizeof/extconf.rb b/ext/rbconfig/sizeof/extconf.rb new file mode 100644 index 0000000000..619b4256f8 --- /dev/null +++ b/ext/rbconfig/sizeof/extconf.rb @@ -0,0 +1,2 @@ +$srcs = %w[sizes.c] +create_makefile('rbconfig/sizeof') |