diff options
| author | zhang san <[email protected]> | 2025-12-08 18:34:25 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-08 18:34:25 +0800 |
| commit | 69980f8b9d29b38dbd4ddf6373b4b45f3a138409 (patch) | |
| tree | 21dd9a8ce80e3d30192e9ffa56ea39a199bae309 /components/SConscript | |
| parent | cd1d47b87c5d47e131730e5506eb3ad77d357653 (diff) | |
Adding Rust Language Support for RT-Thread #10910
Diffstat (limited to 'components/SConscript')
| -rw-r--r-- | components/SConscript | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/components/SConscript b/components/SConscript index 82efd7b2fe..a7928d85ba 100644 --- a/components/SConscript +++ b/components/SConscript @@ -5,13 +5,17 @@ from building import * objs = [] cwd = GetCurrentDir() -list = os.listdir(cwd) +entries = os.listdir(cwd) -for item in list: +for item in entries: if item in remove_components: continue if os.path.isfile(os.path.join(cwd, item, 'SConscript')): - objs = objs + SConscript(os.path.join(item, 'SConscript')) + result = SConscript(os.path.join(item, 'SConscript')) + if isinstance(result, (list, tuple)): + objs.extend(result) + else: + objs.append(result) Return('objs') |
