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:
Steve Purcell 2024-05-08 00:55:30 +12:00 committed by GitHub
parent d19362526f
commit 90df6a3792
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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