Skip to content

Commit

Permalink
fix: wasip2 target again for cpython for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
benbrandt committed Jan 27, 2025
1 parent e46ffad commit b42bc8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/package_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ jobs:
- uses: actions/cache@v4
with:
path: cpython-3.12.8
key: cpython-wasi-3.12.8
key: cpython-wasi-3.12.8-wasi-sdk-25.0.0
- uses: actions/cache@v4
with:
path: cpython-3.13.1
key: cpython-wasi-3.13.1
key: cpython-wasi-3.13.1-wasi-sdk-25.0.0
- uses: actions/cache@v4
with:
path: wasi-sdk
Expand Down
4 changes: 2 additions & 2 deletions src/build/build_tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl PythonVersion {
fn wasi_dir(self) -> PathBuf {
self.cpython_dir().join(match self {
PythonVersion::Py3_12 => "builddir/wasi",
PythonVersion::Py3_13 => "cross-build/wasm32-wasip1",
PythonVersion::Py3_13 => "cross-build/wasm32-wasip2",
})
}

Expand Down Expand Up @@ -98,7 +98,7 @@ impl PythonVersion {
const PYTHON_EXECUTABLE: &str = "python.exe";
#[cfg(not(any(target_os = "macos", target_os = "windows")))]
const PYTHON_EXECUTABLE: &str = "python";
const HOST_TRIPLE: &str = "wasm32-wasip1";
const HOST_TRIPLE: &str = "wasm32-wasip2";
let github_branch = self.github_branch();
let cpython = self.cpython_dir();

Expand Down

0 comments on commit b42bc8f

Please sign in to comment.