From cbb9ece10a4071c218bc7c2b93be871b9b37969a Mon Sep 17 00:00:00 2001 From: Bert Wesarg Date: Wed, 22 May 2024 10:29:41 +0200 Subject: [PATCH] gcc: Make default languages a global --- easybuild/easyblocks/g/gcc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/easybuild/easyblocks/g/gcc.py b/easybuild/easyblocks/g/gcc.py index fd4bc01cd6..025a4c44e8 100644 --- a/easybuild/easyblocks/g/gcc.py +++ b/easybuild/easyblocks/g/gcc.py @@ -64,6 +64,8 @@ HOST_COMPILER = 'HOST_COMPILER' NVIDIA_NEWLIB = 'NVIDIA_NEWLIB' NVPTX_TOOLS = 'NVIDIA_NVPTX_TOOLS' +# Default languages +DEFAULT_LANGUAGES = ['c', 'c++', 'fortran'] # Additional symlinks to create for compiler commands COMP_CMD_SYMLINKS = { 'cc': 'gcc', @@ -1055,7 +1057,7 @@ def sanity_check_step(self): libexec_files = [] dirs = [os.path.join('lib', 'gcc', config_name_subdir, self.version)] - languages = self.cfg['languages'] or ['c', 'c++', 'fortran'] # default languages + languages = self.cfg['languages'] or DEFAULT_LANGUAGES if 'c' in languages: bin_files.extend(['cpp', 'gcc'])