llvmPackages.openmp: Build static libraries when appropriate

This commit is contained in:
hacker1024
2025-02-08 12:46:08 +01:00
committed by Alyssa Ross
parent ecd9d98879
commit 21a8b8d45e
@@ -64,6 +64,7 @@ stdenv.mkDerivation (rec {
];
cmakeFlags = [
(lib.cmakeBool "LIBOMP_ENABLE_SHARED" (!stdenv.hostPlatform.isStatic && stdenv.hostPlatform.hasSharedLibraries))
(lib.cmakeBool "LIBOMP_OMPD_SUPPORT" ompdSupport)
(lib.cmakeBool "LIBOMP_OMPD_GDB_SUPPORT" ompdGdbSupport)
] ++ lib.optionals (lib.versions.major release_version == "13") [