Skip to content

Commit

Permalink
Update py2-llvmlite patch for clang 10 and updated llvm
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodozov authored and cmsbuild committed May 22, 2020
1 parent a68594f commit f870c23
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 70 deletions.
24 changes: 1 addition & 23 deletions py2-llvmlite-llvm9.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ diff -Naur a/ffi/build.py b/ffi/build.py
print(out)
if not (out.startswith('8.0.') or out.startswith('7.0.')
- or out.startswith('7.1.')):
+ or out.startswith('7.1.') or out.startswith('9.0.') or out.startswith('11.0.')):
+ or out.startswith('7.1.') or out.startswith('9.0.') or out.startswith('10.0.')):
msg = (
"Building llvmlite requires LLVM 7.0.x, 7.1.x or 8.0.x Be sure to "
"set LLVM_CONFIG to the right executable path.\n"
Expand All @@ -23,25 +23,3 @@ index 57bb80b..2cc0019 100644

// link
bool failed = LLVMLinkModules2(Dest, Src);
diff --git a/ffi/transforms.cpp b/ffi/transforms.cpp
index 23bfd72..8cb8830 100644
--- a/ffi/transforms.cpp
+++ b/ffi/transforms.cpp
@@ -6,7 +6,7 @@

extern "C" {

-namespace llvm {
+ /*namespace llvm {
inline PassManagerBuilder *unwrap(LLVMPassManagerBuilderRef P) {
return reinterpret_cast<PassManagerBuilder*>(P);
}
@@ -14,7 +14,7 @@ namespace llvm {
inline LLVMPassManagerBuilderRef wrap(PassManagerBuilder *P) {
return reinterpret_cast<LLVMPassManagerBuilderRef>(P);
}
-}
+ }*/


API_EXPORT(LLVMPassManagerBuilderRef)
47 changes: 0 additions & 47 deletions py3-llvmlite-llvm9.patch

This file was deleted.

0 comments on commit f870c23

Please sign in to comment.