llvm: add variant: llvm_dylib (LLVM_BUILD_LLVM_DYLIB:Bool) (#19701)
This commit is contained in:
parent
42008e532f
commit
81a7ae2c27
@ -107,6 +107,12 @@ class Llvm(CMakePackage, CudaPackage):
|
|||||||
description="Build all components as shared libraries, faster, "
|
description="Build all components as shared libraries, faster, "
|
||||||
"less memory to build, less stable",
|
"less memory to build, less stable",
|
||||||
)
|
)
|
||||||
|
variant(
|
||||||
|
"llvm_dylib",
|
||||||
|
default=False,
|
||||||
|
description="Build LLVM shared library, containing all "
|
||||||
|
"components in a single shared library",
|
||||||
|
)
|
||||||
variant(
|
variant(
|
||||||
"all_targets",
|
"all_targets",
|
||||||
default=False,
|
default=False,
|
||||||
@ -161,6 +167,7 @@ class Llvm(CMakePackage, CudaPackage):
|
|||||||
depends_on("gmp", when="@:3.6.999 +polly")
|
depends_on("gmp", when="@:3.6.999 +polly")
|
||||||
depends_on("isl", when="@:3.6.999 +polly")
|
depends_on("isl", when="@:3.6.999 +polly")
|
||||||
|
|
||||||
|
conflicts("+llvm_dylib", when="+shared_libs")
|
||||||
conflicts("+lldb", when="~clang")
|
conflicts("+lldb", when="~clang")
|
||||||
conflicts("+libcxx", when="~clang")
|
conflicts("+libcxx", when="~clang")
|
||||||
conflicts("+internal_unwind", when="~clang")
|
conflicts("+internal_unwind", when="~clang")
|
||||||
@ -430,6 +437,8 @@ def cmake_args(self):
|
|||||||
|
|
||||||
if "+shared_libs" in spec:
|
if "+shared_libs" in spec:
|
||||||
cmake_args.append("-DBUILD_SHARED_LIBS:Bool=ON")
|
cmake_args.append("-DBUILD_SHARED_LIBS:Bool=ON")
|
||||||
|
if "+llvm_dylib" in spec:
|
||||||
|
cmake_args.append("-DLLVM_BUILD_LLVM_DYLIB:Bool=ON")
|
||||||
if "+omp_debug" in spec:
|
if "+omp_debug" in spec:
|
||||||
cmake_args.append("-DLIBOMPTARGET_ENABLE_DEBUG:Bool=ON")
|
cmake_args.append("-DLIBOMPTARGET_ENABLE_DEBUG:Bool=ON")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user