Skip to content

Commit

Permalink
feat: attempting to get windows to work again
Browse files Browse the repository at this point in the history
  • Loading branch information
wozeparrot committed Dec 3, 2023
1 parent 3132ecd commit 2350e74
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 79 deletions.
102 changes: 28 additions & 74 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
url = "github:ipetkov/crane";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};

Expand Down Expand Up @@ -89,9 +88,9 @@
for arg in "$@"; do
case "$arg" in
*compiler_builtins*)
if [[ "$ZIG_CC_TARGET" != "x86_64-windows-gnu" ]]; then
args+=("$arg")
fi
# if [[ "$ZIG_CC_TARGET" != "x86_64-windows-gnu" ]]; then
args+=("$arg")
# fi
;;
-lwindows) ;;
-l:libpthread.a) ;;
Expand Down
2 changes: 1 addition & 1 deletion nix/wgpu-native/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ in
# doesn't work when building for darwin from a non-darwin host
# also doesn't work when building for wasm
# also doesn't work here when building for MinGW
++ lib.optionals (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isWasm && !stdenv.hostPlatform.isMinGW) [
++ lib.optionals (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isWasm) [
rustPlatform.bindgenHook
];

Expand Down

0 comments on commit 2350e74

Please sign in to comment.