Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Numba #1057

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion server/pypi/packages/chaquopy-llvm/build-tblgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mkdir -p $build_dir
cd $build_dir

unset AR ARFLAGS AS CC CFLAGS CPP CPPFLAGS CXX CXXFLAGS F77 F90 FARCH FC LD LDFLAGS LDSHARED \
NM RANLIB READELF STRIP
NM RANLIB READELF STRIP CMAKE_TOOLCHAIN_FILE

cmake -G Ninja ..
cmake --build . --target llvm-tblgen -- -j $(nproc)
10 changes: 4 additions & 6 deletions server/pypi/packages/chaquopy-llvm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ set -eu
# There are undefined symbols in plugin modules, e.g lib/Transforms/Hello.
LDFLAGS=$(echo $LDFLAGS | sed 's/-Wl,--no-undefined//')

triple=$(basename $AR | sed 's/-ar$//')
case $triple in
case $HOST in
arm-linux-androideabi)
target="ARM"
;;
Expand All @@ -23,7 +22,7 @@ case $triple in
target="X86"
;;
*)
echo "Unknown triple '$triple'"
echo "Unknown HOST '$HOST'"
exit 1
esac

Expand All @@ -38,11 +37,10 @@ _cmake_config+=(-DCMAKE_BUILD_TYPE:STRING=Release)
_cmake_config+=(-DLLVM_BUILD_LLVM_DYLIB=ON)
_cmake_config+=(-DLLVM_TABLEGEN=$(realpath $build_tblgen/bin/llvm-tblgen))

_cmake_config+=(-DCMAKE_TOOLCHAIN_FILE="../chaquopy.toolchain.cmake")
_cmake_config+=(-DLLVM_HOST_TRIPLE=$triple)
_cmake_config+=(-DLLVM_HOST_TRIPLE=$HOST)
_cmake_config+=(-DLLVM_TARGETS_TO_BUILD=$target)
_cmake_config+=(-DLLVM_TARGET_ARCH=$target)
_cmake_config+=(-DLLVM_DEFAULT_TARGET_TRIPLE=$triple)
_cmake_config+=(-DLLVM_DEFAULT_TARGET_TRIPLE=$HOST)

_cmake_config+=(-DLLVM_ENABLE_ASSERTIONS:BOOL=ON)
_cmake_config+=(-DLINK_POLLY_INTO_TOOLS:BOOL=ON)
Expand Down
4 changes: 2 additions & 2 deletions server/pypi/packages/chaquopy-llvm/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ package:
version: {{ version }}

build:
number: 2
number: 3

source:
url: http://llvm.org/releases/{{ version }}/llvm-{{ version }}.src.tar.xz

requirements:
build:
- cmake
- cmake 3.28.1