python313Packages.astropy: fix clang build

Parts of the build compile with -Werror and the build also passes in
-fno-strict-overflow which generates an unused command line argument
warning which causes the build to fail when -Werror is present.

Add -Wno-error=unused-command-line-argument to ignore.
This commit is contained in:
Reno Dakota
2024-12-20 01:45:02 -08:00
parent 731990cd53
commit 37582d6019
@@ -62,6 +62,10 @@ buildPythonPackage rec {
hash = "sha256-6S18n+6G6z34cU5d1Bu/nxY9ND4aGD2Vv2vQnkMTyUA=";
};
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=unused-command-line-argument";
};
build-system = [
cython
extension-helpers