tangramdotdev / packages

A collection of community maintained Tangram packages.
https://www.tangram.dev
MIT License
8 stars 2 forks source link

feat(std/sdk)!: enable cross-compiling SDKs #4

Closed deciduously closed 9 months ago

deciduously commented 10 months ago

This PR re-enables std.sdk() invocations with host !== target. It also includes a number of reactors and fixes to facilitate this change, ensuring consistent interfaces are in use throughout all targets including injection and workspace, with adequate toggles to avoid bootstrapping loops.

It also adds a new option for optimizing library paths. Previously, tgld would crawl the available paths, fully resolve all tg::Files it can find, and construct a new directory. The filter mode instead just drops paths that do not contain transitively needed libraries and resolves symlinks with paths, but does not aggregate them.

Leaving as a draft for the time being, pending these issues: