Hi all, I'm currently trying to make WebAssembly compiler target work, but this requires cross-compiling libicu, musl, libc++ and libc++abi as these are dependencies of the Swift standard library (a bit more details available here).
We already have libicu building for Linux and Android, so I was able to reuse some of those build script helpers. libc++ and libc++abi can be built as a part of LLVM by symlinking sources of those in
The main problem here is adding a musl build product. My understanding is that new products should be added to the giant
build-script-impl. But I've also found
--no-legacy-impl argument that can be passed to
utils/build-script. It looks like that flag is work in progress towards resolving SR-237, is my understanding correct?
If so, what is the preferred way to add new build products that are built conditionally depending on the target platform? Should I add it to
build-script-impl first? Should I add it as a Python module in
utils/build_swift? Is it even worth trying to build new target platforms with
I was currently thinking if the work on migrating away from
build-script-impl is in progress, maybe it's worth not to add new target platforms to the legacy build script and to rely only on the new Python build scripts for that?
Hope this can be clarified.