From de27e6cbdd6728ace7119c7d1157b251f2caeeca Mon Sep 17 00:00:00 2001 From: Davide Mancusi Date: Wed, 26 May 2021 02:50:21 +0200 Subject: root: add CLING_CXX_PATH variable to CMake build (#23888) Closes issue #23886. --- var/spack/repos/builtin/packages/root/package.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/root/package.py b/var/spack/repos/builtin/packages/root/package.py index c23f66432e..9b8f4c1123 100644 --- a/var/spack/repos/builtin/packages/root/package.py +++ b/var/spack/repos/builtin/packages/root/package.py @@ -350,7 +350,10 @@ class Root(CMakePackage): define('shared', True), define('soversion', True), define('testing', self.run_tests), - define_from_variant('thread', 'threads') + define_from_variant('thread', 'threads'), + # The following option makes sure that Cling will call the compiler + # it was compiled with at run time; see #17488, #18078 and #23886 + define('CLING_CXX_PATH', self.compiler.cxx), ] # Options related to ROOT's ability to download and build its own -- cgit v1.2.3-60-g2f50