-
Notifications
You must be signed in to change notification settings - Fork 257
Enable build for armv7 with bundled toolchain #499
Conversation
I am not sure if we should land this. We ought to already support this via the custom toolchain integration with GN. So folks who need these artifacts can already building them using their own toolchains. Adding support here will mean that we need to maintain these rules and test them (perhaps on even add recipes to pre/post submits). Do do this for artifacts that we don't actually vend makes me hesitant to endorse this. |
That's true, it's already possible to build the engine that way. The article you wrote is really helpful for that, helped me when I started at least. But building the engine that way is difficult to maintain and also not as straightforward. The former is actually the reason for these PRs, the update to clang 13 broke my build scripts that bad that it seemed easier to just fix it in the engine. Some things that complicate the custom toolchain build method:
When it's supported in the engine, all those problems will just be gone and you can just do
I'm currently working on a CI shard for building the armv7 engine, that's the way hixie recommended for testing this PR. I think the build didn't break that often in the past 2 years. IIRC it broke two times: one time when you started using |
You should be able to plug in engine supplied toolchain as a custom toolchain via
That part of the article is outdated and you no longer need to build these yourself. The buildroot will build these using the toolchain you provide to it. |
Oh, that's good to know! I guess this PR is more of a syntactical change then @KDAB would also be happy to maintain the armv7 support in the engine / CI and help fix any problems, if it's merged. |
cc @zanderso |
Our goal with armv7 is currently to make sure that we keep the custom toolchain and sysroot configurations working, so at the moment, I don't think we can accept this PR. Instead, we should focus our energies on making sure that the flow that we can support is well-tested: flutter/flutter#90833. |
This makes it possible to build the engine for armv7 with the bundled clang toolchain.
The bundled clang toolchain already supports armv7 and also has compiler-rt binaries for armv7, so it's just some change in the tooling.
However the engine still doesn't build for armv7 because of a different problem (flutter/flutter#74322), this just makes it possible to use the bundled toolchain for building instead of having to build your own and use that for building the engine.