Skip to content

Commit

Permalink
We no longer need pre-built ICU libraries
Browse files Browse the repository at this point in the history
We now build ICU from source in swift-foundation-icu, so we no longer need to
download pre-built ICU libraries.
  • Loading branch information
kateinoigakukun committed Sep 20, 2024
1 parent c38fff2 commit bad59c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 1 addition & 4 deletions schemes/main/manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"base-tag": "swift-DEVELOPMENT-SNAPSHOT-2024-09-18-a",
"build-compiler": false,
"icu4c": [
"https://github.com/swiftwasm/icu4c-wasi/releases/download/0.10.0/icu4c-wasm32-unknown-wasi.tar.xz",
"https://github.com/swiftwasm/icu4c-wasi/releases/download/0.10.0/icu4c-wasm32-unknown-wasip1-threads.tar.xz"
],
"icu4c": [],
"libxml2": [
"https://github.com/swiftwasm/libxml2-wasm/releases/download/2.0.0/libxml2-wasm32-unknown-wasi.tar.gz",
"https://github.com/swiftwasm/libxml2-wasm/releases/download/2.0.0/libxml2-wasm32-unknown-wasip1-threads.tar.gz"
Expand Down
2 changes: 2 additions & 0 deletions tools/build/install-build-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ CURRENT_SCHEME_FILE="$BUILD_SDK_PATH/scheme"

install_libxml2() {
read -r -a LIBXML2_URLS <<< "$(python3 -c 'import sys, json; print(" ".join(json.load(sys.stdin)["libxml2"]))' < "$SCHEME_DIR/manifest.json")"
[ -z "${LIBXML2_URLS+x}" ] && return
for url in "${LIBXML2_URLS[@]}"; do
curl -L "$url" | tar xz -C "$BUILD_SDK_PATH"
done
Expand All @@ -22,6 +23,7 @@ install_libxml2() {

install_icu() {
read -r -a ICU_URLS <<< "$(python3 -c 'import sys, json; print(" ".join(json.load(sys.stdin)["icu4c"]))' < "$SCHEME_DIR/manifest.json")"
[ -z "${ICU_URLS+x}" ] && return
rm -rf "$BUILD_SDK_PATH/icu"
for url in "${ICU_URLS[@]}"; do
curl -L "$url" | tar Jx -C "$BUILD_SDK_PATH"
Expand Down

0 comments on commit bad59c3

Please sign in to comment.