summaryrefslogtreecommitdiff
path: root/ext/rbconfig/sizeof
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-03 12:00:50 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-03 12:00:50 +0000
commit2f9b7898f6fa4716d61eb8bff03cc645749e9838 (patch)
tree761d1c189324705362726e2fc13dda7d2189810f /ext/rbconfig/sizeof
parentc3cc282f7f23abb36c10e4df489c04976b9b4004 (diff)
* configure.in: Don't check __int128.
* ext/rbconfig/sizeof/extconf.rb: Check __int128. * ext/rbconfig/sizeof/depend: sizes.c depends on ext/rbconfig/sizeof/extconf.rb. * template/sizes.c.tmpl: Detect check_sizeof. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/rbconfig/sizeof')
-rw-r--r--ext/rbconfig/sizeof/depend6
-rw-r--r--ext/rbconfig/sizeof/extconf.rb1
2 files changed, 5 insertions, 2 deletions
diff --git a/ext/rbconfig/sizeof/depend b/ext/rbconfig/sizeof/depend
index 1bcaa9c..56564b1 100644
--- a/ext/rbconfig/sizeof/depend
+++ b/ext/rbconfig/sizeof/depend
@@ -1,6 +1,8 @@
-sizes.c: $(top_srcdir)/tool/generic_erb.rb $(top_srcdir)/template/sizes.c.tmpl $(top_srcdir)/configure.in
+sizes.c: $(top_srcdir)/tool/generic_erb.rb $(top_srcdir)/template/sizes.c.tmpl $(top_srcdir)/configure.in $(top_srcdir)/ext/rbconfig/sizeof/extconf.rb
$(Q) $(RUBY) $(top_srcdir)/tool/generic_erb.rb --output=$@ \
- $(top_srcdir)/template/sizes.c.tmpl $(top_srcdir)/configure.in
+ $(top_srcdir)/template/sizes.c.tmpl \
+ $(top_srcdir)/configure.in \
+ $(top_srcdir)/ext/rbconfig/sizeof/extconf.rb
# AUTOGENERATED DEPENDENCIES START
sizes.o: $(RUBY_EXTCONF_H)
diff --git a/ext/rbconfig/sizeof/extconf.rb b/ext/rbconfig/sizeof/extconf.rb
index ac66b6a..f4379b0 100644
--- a/ext/rbconfig/sizeof/extconf.rb
+++ b/ext/rbconfig/sizeof/extconf.rb
@@ -1,3 +1,4 @@
$srcs = %w[sizes.c]
$distcleanfiles.concat($srcs)
+check_sizeof('__int128')
create_makefile('rbconfig/sizeof')