diff options
| author | Jason Scott <jpscott07@gmail.com> | 2024-10-18 12:09:11 -0400 |
|---|---|---|
| committer | Jason Scott <jpscott07@gmail.com> | 2024-10-18 12:09:11 -0400 |
| commit | 143f848a439a35dc2e4512c02aebc67cc134b7fc (patch) | |
| tree | 566095d5abb4b133732fd1f42fee2eea67b2b38f | |
| parent | 6e9e344bcfcd63dba9c393012240ae7f7d41e5ee (diff) | |
| download | meson-143f848a439a35dc2e4512c02aebc67cc134b7fc.tar.gz | |
populate compiler args for linking command for ti targets
| -rw-r--r-- | mesonbuild/backend/ninjabackend.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 91603025b..bab842302 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -3554,6 +3554,17 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485''')) for t in target.link_depends]) elem = NinjaBuildElement(self.all_outputs, outname, linker_rule, obj_list, implicit_outs=implicit_outs) elem.add_dep(dep_targets + custom_target_libraries) + + # Compiler args must be included in TI C28x linker commands. + if linker.get_id() in {'c2000', 'c6000', 'ti'}: + compile_args = [] + for for_machine in MachineChoice: + clist = self.environment.coredata.compilers[for_machine] + for langname, compiler in clist.items(): + if langname in {'c', 'cpp'} and compiler.get_id() in {'c2000', 'c6000', 'ti'}: + compile_args += self.generate_basic_compiler_args(target, compiler) + elem.add_item('ARGS', compile_args) + elem.add_item('LINK_ARGS', commands) self.create_target_linker_introspection(target, linker, commands) return elem |
