-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1262 from mhsmith/libcxx-update
Update chaquopy-libcxx
- Loading branch information
Showing
12 changed files
with
58 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#!/bin/bash | ||
set -eu | ||
set -eu -o pipefail | ||
|
||
toolchain=$(realpath $(dirname $CC)/..) | ||
toolchain=$(realpath $(dirname $AR)/..) | ||
|
||
header_version=$(cat $toolchain/sysroot/usr/include/c++/v1/__libcpp_version) | ||
if [[ $header_version != $PKG_VERSION ]]; then | ||
echo "Header version '$header_version' doesn't match meta.yaml version '$PKG_VERSION'" | ||
ndk_version=$("$RECIPE_DIR/version.sh") | ||
if [ "$ndk_version" != "$PKG_VERSION" ]; then | ||
echo "Version '$ndk_version' from NDK doesn't match version '$PKG_VERSION' from meta.yaml" | ||
exit 1 | ||
fi | ||
|
||
mkdir -p $PREFIX/lib | ||
cp $toolchain/sysroot/usr/lib/$CHAQUOPY_TRIPLET/libc++_shared.so $PREFIX/lib | ||
cp $toolchain/sysroot/usr/lib/$HOST/libc++_shared.so $PREFIX/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# Updates to this package should be backward-compatible, but it doesn't always work that | ||
# way, so make sure to test new versions with existing packages | ||
# (https://github.com/chaquo/chaquopy/issues/1171#issuecomment-2402757412). | ||
|
||
package: | ||
name: chaquopy-libcxx | ||
version: "11000" # See PKG_VERSION in build.sh, and COMPILER_LIBS in build-wheel.py. | ||
version: "180000" # See version.sh. | ||
|
||
source: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
set -eu -o pipefail | ||
|
||
toolchain=$(realpath $(dirname $AR)/..) | ||
|
||
pattern='^ *# *define +_LIBCPP_VERSION +([0-9]+)$' | ||
|
||
grep -E "$pattern" "$toolchain/sysroot/usr/include/c++/v1/__config" | | ||
sed -E "s/$pattern/\1/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
#!/bin/bash | ||
set -eu | ||
set -eu -o pipefail | ||
|
||
toolchain=$(realpath $(dirname $CC)/..) | ||
arch=$(echo $CHAQUOPY_TRIPLET | sed 's/-.*//; s/i686/i386/') | ||
toolchain=$(realpath $(dirname $AR)/..) | ||
arch=$(echo $HOST | sed 's/-.*//; s/i686/i386/') | ||
|
||
ndk_version=$("$RECIPE_DIR/version.sh") | ||
if [ "$ndk_version" != "$PKG_VERSION" ]; then | ||
echo "Version '$ndk_version' from NDK doesn't match version '$PKG_VERSION' from meta.yaml" | ||
exit 1 | ||
fi | ||
|
||
mkdir -p $PREFIX/lib | ||
cp $toolchain/lib64/clang/$PKG_VERSION/lib/linux/$arch/libomp.so $PREFIX/lib | ||
cp $toolchain/lib/clang/$PKG_VERSION/lib/linux/$arch/libomp.so $PREFIX/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# Updates to this package should be backward-compatible, but it doesn't always work that | ||
# way, so make sure to test new versions with existing packages | ||
# (https://github.com/chaquo/chaquopy/issues/1171#issuecomment-2402757412). | ||
|
||
package: | ||
name: chaquopy-libomp | ||
version: "9.0.9" # See PKG_VERSION in build.sh, and COMPILER_LIBS in build-wheel.py. | ||
version: "9.0.9" # See version.sh. | ||
|
||
source: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
set -eu -o pipefail | ||
|
||
toolchain=$(realpath $(dirname $AR)/..) | ||
|
||
cd $toolchain/lib/clang | ||
echo * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ package: | |
version: "3.0.1" | ||
|
||
build: | ||
number: 0 | ||
number: 1 |