libdevil: check for clang rather than darwin when setting cxxflags
Co-authored-by: éclairevoyant <848000+eclairevoyant@users.noreply.github.com>
This commit is contained in:
parent
d19362526f
commit
90df6a3792
|
@ -35,7 +35,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
|
||||
configureFlags = [ "--enable-ILU" "--enable-ILUT" ];
|
||||
|
||||
CXXFLAGS = lib.optionalString stdenv.isDarwin "-Wno-register";
|
||||
CXXFLAGS = lib.optionalString stdenv.cc.isClang "-Wno-register";
|
||||
|
||||
preConfigure = ''
|
||||
sed -i 's, -std=gnu99,,g' configure
|
||||
|
|
Loading…
Reference in New Issue
Block a user