0
0
mirror of https://github.com/vim/vim.git synced 2025-11-08 10:27:32 -05:00

patch 8.2.2241: Build with Ruby and clang may fail

Problem:    Build with Ruby and clang may fail.
Solution:   Adjust congigure and sed script. (Ozaki Kiichi, closes #7566)
This commit is contained in:
Bram Moolenaar
2020-12-28 21:36:56 +01:00
parent 41a834d1e3
commit 864a28b6a6
4 changed files with 9 additions and 1 deletions

3
src/auto/configure vendored
View File

@@ -7651,6 +7651,9 @@ $as_echo "$rubyhdrdir" >&6; }
RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" $RUBY_CFLAGS"
RUBY_LIBS=
fi
if test "X$CLANG_VERSION" != "X" -a "$rubyversion" -ge 30; then
RUBY_CFLAGS="$RUBY_CFLAGS -fdeclspec"
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
$as_echo "not found; disabling Ruby" >&6; }