From 32d0b5ca97cf230fa068709e42e4d812612a4c62 Mon Sep 17 00:00:00 2001 From: Chris White Date: Tue, 4 Jul 2023 04:52:59 -0700 Subject: conduit: remove no longer needed blueos logic (#38698) --- .../repos/builtin/packages/conduit/package.py | 36 ++++++++-------------- 1 file changed, 12 insertions(+), 24 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/conduit/package.py b/var/spack/repos/builtin/packages/conduit/package.py index 0fe7b06f3a..cb6b5aefe1 100644 --- a/var/spack/repos/builtin/packages/conduit/package.py +++ b/var/spack/repos/builtin/packages/conduit/package.py @@ -410,31 +410,19 @@ class Conduit(CMakePackage): cfg.write(cmake_cache_entry("ENABLE_TESTS", "OFF")) # extra fun for blueos - if on_blueos: - # All of BlueOS compilers report clang due to nvcc, - # override to proper compiler family - if "xlc" in c_compiler: - cfg.write(cmake_cache_entry("CMAKE_C_COMPILER_ID", "XL")) - if "xlC" in cpp_compiler: - cfg.write(cmake_cache_entry("CMAKE_CXX_COMPILER_ID", "XL")) + if on_blueos and "+fortran" in spec and (f_compiler is not None) and ("xlf" in f_compiler): + # Fix missing std linker flag in xlc compiler + flags = "-WF,-C! -qxlf2003=polymorphic" + cfg.write(cmake_cache_entry("BLT_FORTRAN_FLAGS", flags)) + # Grab lib directory for the current fortran compiler + libdir = os.path.join(os.path.dirname(os.path.dirname(f_compiler)), "lib") + rpaths = "-Wl,-rpath,{0} -Wl,-rpath,{0}64".format(libdir) - if "+fortran" in spec: - if "xlf" in f_compiler: - cfg.write(cmake_cache_entry("CMAKE_Fortran_COMPILER_ID", "XL")) - - if (f_compiler is not None) and ("xlf" in f_compiler): - # Fix missing std linker flag in xlc compiler - flags = "-WF,-C! -qxlf2003=polymorphic" - cfg.write(cmake_cache_entry("BLT_FORTRAN_FLAGS", flags)) - # Grab lib directory for the current fortran compiler - libdir = os.path.join(os.path.dirname(os.path.dirname(f_compiler)), "lib") - rpaths = "-Wl,-rpath,{0} -Wl,-rpath,{0}64".format(libdir) - - flags = "${BLT_EXE_LINKER_FLAGS} -lstdc++ " + rpaths - cfg.write(cmake_cache_entry("BLT_EXE_LINKER_FLAGS", flags)) - if "+shared" in spec: - flags = "${CMAKE_SHARED_LINKER_FLAGS} " + rpaths - cfg.write(cmake_cache_entry("CMAKE_SHARED_LINKER_FLAGS", flags)) + flags = "${BLT_EXE_LINKER_FLAGS} -lstdc++ " + rpaths + cfg.write(cmake_cache_entry("BLT_EXE_LINKER_FLAGS", flags)) + if "+shared" in spec: + flags = "${CMAKE_SHARED_LINKER_FLAGS} " + rpaths + cfg.write(cmake_cache_entry("CMAKE_SHARED_LINKER_FLAGS", flags)) ####################### # Python -- cgit v1.2.3-60-g2f50