Skip to content

Commit

Permalink
Fix compiling on Windows
Browse files Browse the repository at this point in the history
Disable Windows zig test for now
  • Loading branch information
messense committed Dec 29, 2021
1 parent e900a62 commit c470fee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ jobs:
with:
python-version: "3.10.0"
- name: test cross compiling with zig
if: matrix.os != 'windows-latest'
run: |
rustup target add aarch64-unknown-linux-gnu
cargo run -- build --no-sdist -i python -m test-crates/pyo3-pure/Cargo.toml --target aarch64-unknown-linux-gnu --zig
Expand Down
2 changes: 1 addition & 1 deletion src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ fn create_linker_script(path: &Path) -> Result<std::fs::File> {

#[cfg(not(target_family = "unix"))]
fn create_linker_script(path: &Path) -> Result<File> {
File::create(path)
Ok(File::create(path)?)
}

fn compile_target(
Expand Down

0 comments on commit c470fee

Please sign in to comment.