Minor cleanup, add comment to tupfile

This commit is contained in:
Unknown
2020-09-03 00:18:26 -04:00
parent 72f7d51b07
commit d628fdb35c
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -158,6 +158,9 @@ toolchain = GCCToolchain('arm-none-eabi-', 'build', FLAGS, LDFLAGS)
-- Load list of source files Makefile that was autogenerated by CubeMX
vars = parse_makefile_vars(board.dir..'/Makefile')
-- ASM sources must precede C sources due to LTO removing weak symbols which appear after strong symbols
-- in the call to the linker: https://bugs.launchpad.net/gcc-arm-embedded/+bug/1747966
all_stm_sources = (vars['ASM_SOURCES'] or '')..' '..(vars['CPP_SOURCES'] or '')..' '..(vars['C_SOURCES'] or '')
for src in string.gmatch(all_stm_sources, "%S+") do
stm_sources += board.dir..'/'..src