diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2024-05-15 22:53:58 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-15 22:53:58 +0300 |
| commit | f24307e55943f08e1a505a24112ee62d127c0900 (patch) | |
| tree | 0e2923dfa3a21b8b9221a628beb8396c9ec5e807 /mesonbuild/compilers | |
| parent | bfb9ca04529aea96c1c997a8d881ddc7df7d6c84 (diff) | |
| parent | 456d879ff42624a5c67512022ab700518d869b21 (diff) | |
| download | meson-f24307e55943f08e1a505a24112ee62d127c0900.tar.gz | |
Merge pull request #11421 from mon/ti-armclang
Basic support for TI Arm Clang toolchain
Diffstat (limited to 'mesonbuild/compilers')
| -rw-r--r-- | mesonbuild/compilers/detect.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/mesonbuild/compilers/detect.py b/mesonbuild/compilers/detect.py index 6e35e7d39..90a3ac597 100644 --- a/mesonbuild/compilers/detect.py +++ b/mesonbuild/compilers/detect.py @@ -224,14 +224,13 @@ def detect_static_linker(env: 'Environment', compiler: Compiler) -> StaticLinker return linkers.CcrxLinker(linker) if out.startswith('GNU ar') and 'xc16-ar' in linker_name: return linkers.Xc16Linker(linker) - if "--> error: bad option 'e'" in err: # TI + if 'Texas Instruments Incorporated' in out: if 'ar2000' in linker_name: return linkers.C2000Linker(linker) + elif 'ar6000' in linker_name: + return linkers.C6000Linker(linker) else: return linkers.TILinker(linker) - if 'Texas Instruments Incorporated' in out: - if 'ar6000' in linker_name: - return linkers.C6000Linker(linker) if out.startswith('The CompCert'): return linkers.CompCertLinker(linker) if out.strip().startswith('Metrowerks') or out.strip().startswith('Freescale'): @@ -437,8 +436,8 @@ def _detect_c_or_cpp_compiler(env: 'Environment', lang: str, for_machine: Machin 'TI ARM C/C++ Compiler': (c.TICCompiler, cpp.TICPPCompiler, linkers.TIDynamicLinker), 'MSP430 C/C++': (c.TICCompiler, cpp.TICPPCompiler, linkers.TIDynamicLinker) } - for indentifier, compiler_classes in ti_compilers.items(): - if indentifier in out: + for identifier, compiler_classes in ti_compilers.items(): + if identifier in out: cls = compiler_classes[0] if lang == 'c' else compiler_classes[1] lnk = compiler_classes[2] env.coredata.add_lang_args(cls.language, cls, for_machine, env) |
