Merge pull request #272185 from wegank/cbc-clang

cbc: fix build with clang 16
This commit is contained in:
Weijia Wang 2023-12-05 11:48:51 +01:00 committed by GitHub
commit 8c59802efd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,8 @@ stdenv.mkDerivation rec {
};
# or-tools has a hard dependency on Cbc static libraries, so we build both
configureFlags = [ "-C" "--enable-static" ];
configureFlags = [ "-C" "--enable-static" ]
++ lib.optionals stdenv.cc.isClang [ "CXXFLAGS=-std=c++14" ];
enableParallelBuilding = true;