Unverified Commit b2f43234 authored by Austin Horstman's avatar Austin Horstman
Browse files

adolc: fix clang build

parent 5186ad13
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  llvmPackages,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -17,6 +18,8 @@ stdenv.mkDerivation (finalAttrs: {

  configureFlags = [ "--with-openmp-flag=-fopenmp" ];

  buildInputs = lib.optional stdenv.cc.isClang llvmPackages.openmp;

  meta = with lib; {
    description = "Automatic Differentiation of C/C++";
    homepage = "https://github.com/coin-or/ADOL-C";