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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user