Skip to content

Commit

Permalink
[Chore] Fix issues with windows cross-compilation via nix
Browse files Browse the repository at this point in the history
Problem: Cross-compilation to windows is broken.

Solution: Build 'bitvec' without 'simd' flag
  • Loading branch information
rvem authored and int-index committed Sep 25, 2024
1 parent 74ed941 commit 1c9f487
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
name = "xrefcheck";
path = ./.;
};
modules = [{
modules = [({ pkgs, ... }: {
packages.xrefcheck = {
ghcOptions =
[ "-Werror" ];
Expand Down Expand Up @@ -51,7 +51,10 @@
xrefcheck-tests.build-tools = [ pkgs.git ];
};
};
}];
# bitvec compilation on mingw64 with 'simd' flag fails with
# unknown symbol `__cpu_model'
packages.bitvec.flags.simd = !pkgs.stdenv.targetPlatform.isWindows;
})];
}).flake { crossPlatforms = p: [ p.musl64 p.mingwW64 ]; };

in
Expand Down

0 comments on commit 1c9f487

Please sign in to comment.