Loading pkgs/development/compilers/llvm/common/openmp/default.nix +12 −1 Original line number Diff line number Diff line Loading @@ -14,9 +14,15 @@ , clang-unwrapped , perl , pkg-config , python3 , version , devExtraCmakeFlags ? [] , ompdSupport ? true , ompdGdbSupport ? ompdSupport }: assert lib.assertMsg (ompdGdbSupport -> ompdSupport) "OMPD GDB support requires OMPD support!"; let pname = "openmp"; src' = Loading Loading @@ -53,9 +59,14 @@ stdenv.mkDerivation (rec { buildInputs = [ (if stdenv.buildPlatform == stdenv.hostPlatform then llvm else targetLlvm) ] ++ lib.optionals (ompdSupport && ompdGdbSupport) [ python3 ]; cmakeFlags = lib.optionals (lib.versions.major release_version == "13") [ cmakeFlags = [ (lib.cmakeBool "LIBOMP_OMPD_SUPPORT" ompdSupport) (lib.cmakeBool "LIBOMP_OMPD_GDB_SUPPORT" ompdGdbSupport) ] ++ lib.optionals (lib.versions.major release_version == "13") [ "-DLIBOMPTARGET_BUILD_AMDGCN_BCLIB=OFF" # Building the AMDGCN device RTL fails ] ++ lib.optionals (lib.versionAtLeast release_version "14") [ "-DCLANG_TOOL=${clang-unwrapped}/bin/clang" Loading Loading
pkgs/development/compilers/llvm/common/openmp/default.nix +12 −1 Original line number Diff line number Diff line Loading @@ -14,9 +14,15 @@ , clang-unwrapped , perl , pkg-config , python3 , version , devExtraCmakeFlags ? [] , ompdSupport ? true , ompdGdbSupport ? ompdSupport }: assert lib.assertMsg (ompdGdbSupport -> ompdSupport) "OMPD GDB support requires OMPD support!"; let pname = "openmp"; src' = Loading Loading @@ -53,9 +59,14 @@ stdenv.mkDerivation (rec { buildInputs = [ (if stdenv.buildPlatform == stdenv.hostPlatform then llvm else targetLlvm) ] ++ lib.optionals (ompdSupport && ompdGdbSupport) [ python3 ]; cmakeFlags = lib.optionals (lib.versions.major release_version == "13") [ cmakeFlags = [ (lib.cmakeBool "LIBOMP_OMPD_SUPPORT" ompdSupport) (lib.cmakeBool "LIBOMP_OMPD_GDB_SUPPORT" ompdGdbSupport) ] ++ lib.optionals (lib.versions.major release_version == "13") [ "-DLIBOMPTARGET_BUILD_AMDGCN_BCLIB=OFF" # Building the AMDGCN device RTL fails ] ++ lib.optionals (lib.versionAtLeast release_version "14") [ "-DCLANG_TOOL=${clang-unwrapped}/bin/clang" Loading