Skip to content

Commit e722508

Browse files
committed
Avoid the warning raised by clang on aarch64-mingw-ucrt
The warning is raised when compiling a C extension within the ruby header files: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32] When the extconf.rb enforces "-Werror" then this warning breaks mkmf tests and the subsequent build.
1 parent 2ac348c commit e722508

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/patches/rake-compiler-1.2.9/0004-Enable-build-of-static-libruby.patch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ diff --git a/tasks/bin/cross-ruby.rake b/tasks/bin/cross-ruby.rake
22
index 8317a2a3..8ed21718 100644
33
--- a/tasks/bin/cross-ruby.rake
44
+++ b/tasks/bin/cross-ruby.rake
5-
@@ -116,11 +116,30 @@
5+
@@ -116,11 +116,31 @@
66
"--host=#{mingw_host}",
77
"--target=#{mingw_target}",
88
"--build=#{RUBY_BUILD}",
@@ -12,6 +12,7 @@ index 8317a2a3..8ed21718 100644
1212
+ 'ac_cv_lib_z_uncompress=no',
1313
+ 'ac_cv_lib_crypt_crypt=no',
1414
+ 'ac_cv_func_crypt_r=no',
15+
+ 'extra_warnflags=-Wno-shorten-64-to-32 -Wno-dll-attribute-on-redeclaration',
1516
'--disable-install-doc',
1617
'--with-ext=',
1718
]

0 commit comments

Comments
 (0)