Skip to content

Commit

Permalink
gcc: Make default languages a global
Browse files Browse the repository at this point in the history
  • Loading branch information
bertwesarg committed May 22, 2024
1 parent 743662d commit cbb9ece
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion easybuild/easyblocks/g/gcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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'])
Expand Down

0 comments on commit cbb9ece

Please sign in to comment.