1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/rbconfig/sizeof/extconf.rb
nobu 52436ce1b1 sizes.c.tmpl: extract RUBY_DEFINT
* template/sizes.c.tmpl: extract RUBY_DEFINT to define sizes of
  types checked by configure.in, and fix size of intptr_t in
  universal binary.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-06-28 22:24:05 +00:00

35 lines
1.1 KiB
Ruby

$srcs = %w[sizes.c]
$distcleanfiles.concat($srcs)
check_sizeof('int_least8_t')
check_sizeof('int_least16_t')
check_sizeof('int_least32_t')
check_sizeof('int_least64_t')
check_sizeof('int_fast8_t')
check_sizeof('int_fast16_t')
check_sizeof('int_fast32_t')
check_sizeof('int_fast64_t')
check_sizeof('intmax_t')
check_sizeof('sig_atomic_t', %w[signal.h])
check_sizeof('wchar_t')
check_sizeof('wint_t', %w[wctype.h])
check_sizeof('wctrans_t', %w[wctype.h])
check_sizeof('wctype_t', %w[wctype.h])
check_sizeof('_Bool')
check_sizeof('long double')
check_sizeof('float _Complex')
check_sizeof('double _Complex')
check_sizeof('long double _Complex')
check_sizeof('float _Imaginary')
check_sizeof('double _Imaginary')
check_sizeof('long double _Imaginary')
check_sizeof('__int128') # x86_64 ABI (optional)
check_sizeof('__float128') # x86_64 ABI (optional)
check_sizeof('_Decimal32') # x86_64 ABI
check_sizeof('_Decimal64') # x86_64 ABI
check_sizeof('_Decimal128') # x86_64 ABI
check_sizeof('__m64') # x86_64 ABI (optional)
check_sizeof('__m128') # x86_64 ABI (optional)
check_sizeof('__float80') # gcc x86
create_makefile('rbconfig/sizeof')