llvm-mos / llvm-mos-sdk

SDK for developing with the llvm-mos compiler
https://www.llvm-mos.org
Other
270 stars 56 forks source link

Automatically generated linker scripts lack CMake integration #278

Open cwedgwood opened 9 months ago

cwedgwood commented 9 months ago

There are several linker scripts which are generated from LUA scripts.

In general it would be good to teach the build system that in some cases mos-platform/target/something.ld depends on mos-platform/target/misc/generate-something.lua.

It doesn't have to be a uniform pattern, we can add an explicit dependency or pattern for each target.

asiekierka commented 9 months ago

Lua would add a new dependency to the build system - we've had a discussion about this ( https://github.com/llvm-mos/llvm-mos-sdk/issues/205 ) and decided we'd like to set a standard for such script-based linker script generation first, then integrate it with the build system second.