zig: switch to master, requre llvm req and don't install GNU stuff
This commit is contained in:
parent
47d0cf2ec8
commit
43bcff2ab3
2 changed files with 38 additions and 3 deletions
|
@ -1,10 +1,13 @@
|
|||
pkgname=zig
|
||||
pkgver=0.7.1
|
||||
pkgver=master
|
||||
|
||||
fetch() {
|
||||
curl -L "https://ziglang.org/download/$pkgver/zig-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
|
||||
tar -xf $pkgname-$pkgver.tar.xz
|
||||
curl -L "https://github.com/ziglang/zig/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
mkdir $pkgname-$pkgver/build
|
||||
cp ../llvm-req-arch.patch .
|
||||
cd $pkgname-$pkgver
|
||||
patch -p1 < ../llvm-req-arch.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -21,6 +24,13 @@ package() {
|
|||
cd $pkgname-$pkgver
|
||||
cd build
|
||||
DESTDIR=$pkgdir samu install
|
||||
rm -rf $pkgdir/usr/lib/zig/libc/glibc
|
||||
rm -rf $pkgdir/usr/lib/zig/libc/mingw
|
||||
rm -rf $pkgdir/usr/lib/zig/libc/wasi
|
||||
|
||||
rm -rf $pkgdir/usr/lib/zig/libc/include/*gnu*
|
||||
rm -rf $pkgdir/usr/lib/zig/libc/include/*glibc*
|
||||
rm -rf $pkgdir/usr/lib/zig/libc/include/*windows*
|
||||
}
|
||||
|
||||
license() {
|
||||
|
|
25
pkgs/zig/llvm-req-arch.patch
Normal file
25
pkgs/zig/llvm-req-arch.patch
Normal file
|
@ -0,0 +1,25 @@
|
|||
--- a/cmake/Findllvm.cmake
|
||||
+++ b/cmake/Findllvm.cmake
|
||||
@@ -107,22 +107,8 @@
|
||||
endif()
|
||||
endfunction(NEED_TARGET)
|
||||
NEED_TARGET("AArch64")
|
||||
- NEED_TARGET("AMDGPU")
|
||||
- NEED_TARGET("ARM")
|
||||
- NEED_TARGET("AVR")
|
||||
- NEED_TARGET("BPF")
|
||||
- NEED_TARGET("Hexagon")
|
||||
- NEED_TARGET("Lanai")
|
||||
- NEED_TARGET("Mips")
|
||||
- NEED_TARGET("MSP430")
|
||||
- NEED_TARGET("NVPTX")
|
||||
- NEED_TARGET("PowerPC")
|
||||
NEED_TARGET("RISCV")
|
||||
- NEED_TARGET("Sparc")
|
||||
- NEED_TARGET("SystemZ")
|
||||
- NEED_TARGET("WebAssembly")
|
||||
NEED_TARGET("X86")
|
||||
- NEED_TARGET("XCore")
|
||||
|
||||
if(ZIG_STATIC_LLVM)
|
||||
execute_process(
|
Loading…
Reference in a new issue