Skip to content

Commit d1906a1

Browse files
committed
Always disable GMP for CRuby headers
1 parent 666e191 commit d1906a1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/cext/include/truffleruby/config_darwin_amd64.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@
7676
#if defined(__x86_64__)
7777
#define HAVE_X86INTRIN_H 1
7878
#endif
79-
#define HAVE_GMP_H 1
80-
#define HAVE_LIBGMP 1
8179
#define HAVE_TYPEOF 1
8280
#define restrict __restrict__
8381
#define HAVE_LONG_LONG 1

tool/generate-config-header.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ if [ ! -d "ruby-$VERSION" ]; then
3333
fi
3434

3535
cd "ruby-$VERSION" || exit 1
36-
./configure || (cat config.log; exit 1)
36+
# Disable GMP as it might not be available on the runtime machine and we do not use it
37+
./configure --without-gmp || (cat config.log; exit 1)
3738

3839
cp .ext/include/*/ruby/config.h "../lib/cext/include/truffleruby/config_${mx_platform}.h"

0 commit comments

Comments
 (0)