diff options
author | Mats Wichmann <mats@linux.com> | 2024-09-19 16:52:46 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2024-09-19 17:35:47 (GMT) |
commit | f3b0a00430abc6d7eb35e143824481be37cad8f8 (patch) | |
tree | 1f4f8d1b587d632c9533fb2729c5f7df9ebf241f /SCons | |
parent | f700df24f39cbfcc421eaa221869f5a12b692bc0 (diff) | |
download | SCons-f3b0a00430abc6d7eb35e143824481be37cad8f8.zip SCons-f3b0a00430abc6d7eb35e143824481be37cad8f8.tar.gz SCons-f3b0a00430abc6d7eb35e143824481be37cad8f8.tar.bz2 |
Add clang, clang++ to default tool search
SCons will now automatically find clang (clang++) on Linux
and Windows, in each case looked for just after gcc (g++).
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'SCons')
-rw-r--r-- | SCons/Tool/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/SCons/Tool/__init__.py b/SCons/Tool/__init__.py index 474414e..faa92a7 100644 --- a/SCons/Tool/__init__.py +++ b/SCons/Tool/__init__.py @@ -691,8 +691,8 @@ def tool_list(platform, env): if str(platform) == 'win32': "prefer Microsoft tools on Windows" linkers = ['mslink', 'gnulink', 'ilink', 'linkloc', 'ilink32'] - c_compilers = ['msvc', 'mingw', 'gcc', 'intelc', 'icl', 'icc', 'cc', 'bcc32'] - cxx_compilers = ['msvc', 'intelc', 'icc', 'g++', 'cxx', 'bcc32'] + c_compilers = ['msvc', 'mingw', 'gcc', 'clang', 'intelc', 'icl', 'icc', 'cc', 'bcc32'] + cxx_compilers = ['msvc', 'intelc', 'icc', 'g++', 'clang++', 'cxx', 'bcc32'] assemblers = ['masm', 'nasm', 'gas', '386asm'] fortran_compilers = ['gfortran', 'g77', 'ifl', 'cvf', 'f95', 'f90', 'fortran'] ars = ['mslib', 'ar', 'tlib'] @@ -757,8 +757,8 @@ def tool_list(platform, env): else: "prefer GNU tools on all other platforms" linkers = ['gnulink', 'ilink'] - c_compilers = ['gcc', 'intelc', 'icc', 'cc'] - cxx_compilers = ['g++', 'intelc', 'icc', 'cxx'] + c_compilers = ['gcc', 'clang', 'intelc', 'icc', 'cc'] + cxx_compilers = ['g++', 'clang++', 'intelc', 'icc', 'cxx'] assemblers = ['gas', 'nasm', 'masm'] fortran_compilers = ['gfortran', 'g77', 'ifort', 'ifl', 'f95', 'f90', 'f77'] ars = ['ar', ] |