fix cross compilation for windows (disable boost.stacktrace + use sqrt instead of rsqrt)

This commit is contained in:
2026-03-02 20:08:38 +01:00
parent 9c48954a78
commit 7a5013295e
4 changed files with 19 additions and 13 deletions

View File

@ -27,6 +27,7 @@ rec {
config = "x86_64-w64-mingw32";
};
config.allowUnfree = true;
overlays = [];
};
# ===========================================================================================
@ -190,7 +191,15 @@ rec {
raylib
raygui
thread-pool
boost
# Disable stacktrace since that's platform dependant and won't cross compile to windows
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/boost/generic.nix#L43
(boost.override {
enableShared = false;
extraB2Args = [
"--without-stacktrace"
];
})
];
cmakeFlags = [
@ -371,4 +380,4 @@ rec {
};
}
);
}
}