mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-29 18:24:53 +00:00
add a new test to import the libclang
This commit is contained in:
parent
7682e85772
commit
6498d613d1
9
debian/qualify-clang.sh
vendored
9
debian/qualify-clang.sh
vendored
@ -1333,6 +1333,15 @@ if grep "LLVM IR bitcode" foo.log; then
|
||||
echo "Should be elf"
|
||||
exit -2
|
||||
fi
|
||||
echo "
|
||||
from ctypes import *
|
||||
libclang="/usr/lib/llvm-$VERSION/lib/libclang-$VERSION.so.1"
|
||||
lib = CDLL(libclang)
|
||||
fun = lib.clang_getAddressSpace
|
||||
print(fun)
|
||||
" > foo.py
|
||||
python3 foo.py|grep _FuncPtr
|
||||
rm foo.py
|
||||
|
||||
echo "Testing cmake build ..."
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user