Add a symbol suffix option to LLVM (#27445)
This commit is contained in:
parent
bb54e9a4be
commit
a780f96a25
@ -154,6 +154,8 @@ class Llvm(CMakePackage, CudaPackage):
|
|||||||
description="Enable code-signing on macOS")
|
description="Enable code-signing on macOS")
|
||||||
variant("python", default=False, description="Install python bindings")
|
variant("python", default=False, description="Install python bindings")
|
||||||
|
|
||||||
|
variant('version_suffix', default='none', description="Add a symbol suffix")
|
||||||
|
|
||||||
extends("python", when="+python")
|
extends("python", when="+python")
|
||||||
|
|
||||||
# Build dependency
|
# Build dependency
|
||||||
@ -469,6 +471,10 @@ def cmake_args(self):
|
|||||||
define("LIBOMP_HWLOC_INSTALL_DIR", spec["hwloc"].prefix),
|
define("LIBOMP_HWLOC_INSTALL_DIR", spec["hwloc"].prefix),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
version_suffix = spec.variants['version_suffix'].value
|
||||||
|
if version_suffix != 'none':
|
||||||
|
cmake_args.append(define('LLVM_VERSION_SUFFIX', version_suffix))
|
||||||
|
|
||||||
if python.version >= Version("3"):
|
if python.version >= Version("3"):
|
||||||
cmake_args.append(define("Python3_EXECUTABLE", python.command.path))
|
cmake_args.append(define("Python3_EXECUTABLE", python.command.path))
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user