musllvm

musl and LLVM cross-toolchain build system
git clone https://git.daat.foo/musllvm.git
Log | Files | Refs | README | LICENSE

0002-llvm-musl-workarounds.patch (806B)


      1 From 3b558fe3a9ea17b2127fa736e870190974225bf4 Mon Sep 17 00:00:00 2001
      2 From: q66 <q66@chimera-linux.org>
      3 Date: Sat, 4 Nov 2023 08:50:28 +0100
      4 Subject: [PATCH 02/28] llvm: musl workarounds
      5 
      6 ---
      7  llvm/include/llvm/Analysis/TargetLibraryInfo.h | 9 +++++++++
      8  1 file changed, 9 insertions(+)
      9 
     10 diff --git a/llvm/include/llvm/Analysis/TargetLibraryInfo.h b/llvm/include/llvm/Analysis/TargetLibraryInfo.h
     11 index 0f98af69f..15ad453fe 100644
     12 --- a/llvm/include/llvm/Analysis/TargetLibraryInfo.h
     13 +++ b/llvm/include/llvm/Analysis/TargetLibraryInfo.h
     14 @@ -22,6 +22,15 @@
     15  #include <bitset>
     16  #include <optional>
     17  
     18 +#undef fopen64
     19 +#undef fseeko64
     20 +#undef fstat64
     21 +#undef fstatvfs64
     22 +#undef ftello64
     23 +#undef lstat64
     24 +#undef stat64
     25 +#undef tmpfile64
     26 +
     27  namespace llvm {
     28  
     29  template <typename T> class ArrayRef;
     30 -- 
     31 2.52.0
     32