[boostrap] sbcl: Enable CLANG64 build (#27144)
This commit is contained in:
1 parent
31456a7c46
commit
b5b33bc830
2 files changed
+40
-6
No files matched your search
@@ -0,0 +1,16 @@
|
||||
diff -bur sbcl-2.6.0-orig/src/runtime/hopscotch.c sbcl-2.6.0/src/runtime/hopscotch.c
|
||||
--- sbcl-2.6.0-orig/src/runtime/hopscotch.c 2025-12-31 08:25:08.518909600 -0700
|
||||
+++ sbcl-2.6.0/src/runtime/hopscotch.c 2025-12-31 08:25:35.547275300 -0700
|
||||
@@ -23,7 +23,11 @@
|
||||
#include <stdio.h>
|
||||
#ifdef LISP_FEATURE_WIN32
|
||||
/* I don't know where ffs() is prototyped */
|
||||
-extern int ffs(int);
|
||||
+ #ifdef __clang__
|
||||
+ #define ffs __builtin_ffs
|
||||
+ #else
|
||||
+ extern int ffs(int);
|
||||
+ #endif
|
||||
#else
|
||||
/* https://www.freebsd.org/cgi/man.cgi?query=fls&sektion=3&manpath=FreeBSD+7.1-RELEASE
|
||||
says strings.h */
|
||||
+24
-6
@@ -1,23 +1,26 @@
|
||||
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
|
||||
|
||||
_bootstrap=0
|
||||
_bootstrap=1
|
||||
|
||||
_realname=sbcl
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
|
||||
pkgver=2.6.0
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Steel Bank Common Lisp (mingw-w64)"
|
||||
url="https://www.sbcl.org/"
|
||||
msys2_repository_url="https://sourceforge.net/p/sbcl/sbcl"
|
||||
msys2_changelog_url="https://sourceforge.net/p/sbcl/sbcl/ci/master/tree/NEWS"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw64' 'ucrt64')
|
||||
mingw_arch=('mingw64' 'ucrt64' 'clang64')
|
||||
license=('custom')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-zstd")
|
||||
source=("https://downloads.sourceforge.net/project/sbcl/sbcl/${pkgver}/${_realname}-${pkgver}-source.tar.bz2")
|
||||
sha256sums=('0a4bd5b01c88e6b45c2f059605d2728ab9377a6529b2ea622a7abb5ba2d691c6')
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-cc")
|
||||
source=("https://downloads.sourceforge.net/project/sbcl/sbcl/${pkgver}/${_realname}-${pkgver}-source.tar.bz2"
|
||||
"001-clang-ffs.patch")
|
||||
sha256sums=('0a4bd5b01c88e6b45c2f059605d2728ab9377a6529b2ea622a7abb5ba2d691c6'
|
||||
'0aa138f67c5659b2b7aac1a6b5759ac98bb48c8f92d9c09750ac7e7104f52ef2')
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
|
||||
$([[ ${MINGW_PACKAGE_PREFIX} != *-clang-* ]] || echo "${MINGW_PACKAGE_PREFIX}-gcc-compat"))
|
||||
|
||||
if (( _bootstrap )); then
|
||||
makedepends+=("${MINGW_PACKAGE_PREFIX}-msitools")
|
||||
@@ -27,6 +30,21 @@ else
|
||||
makedepends+=("${MINGW_PACKAGE_PREFIX}-sbcl")
|
||||
fi
|
||||
|
||||
apply_patch_with_msg() {
|
||||
for _patch in "$@"
|
||||
do
|
||||
msg2 "Applying ${_patch}"
|
||||
patch -Nbp1 -i "${srcdir}/${_patch}"
|
||||
done
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd ${_realname}-${pkgver}
|
||||
|
||||
apply_patch_with_msg \
|
||||
001-clang-ffs.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${_realname}-${pkgver}"
|
||||
|
||||
|
||||
Reference in new issue
Block a user