admin管理员组文章数量:1122846
Is there a way of speeding up an alr build with gtk? Say I start a new project.
alr init --bin a98xml
alr with gtk
That is simple enough.
alr build
This takes about 4 minutes. We only have to do this once but it is 4 minutes for every project I get out of source code control. Is it safe to do this once and then copy the alire/cache directory to all the projects?
I've tried it. It seems to work but how safe is it?
Is there a way of speeding up an alr build with gtk? Say I start a new project.
alr init --bin a98xml
alr with gtk
That is simple enough.
alr build
This takes about 4 minutes. We only have to do this once but it is 4 minutes for every project I get out of source code control. Is it safe to do this once and then copy the alire/cache directory to all the projects?
I've tried it. It seems to work but how safe is it?
Share Improve this question edited Nov 22, 2024 at 0:08 Jere 3,6118 silver badges18 bronze badges asked Nov 21, 2024 at 15:51 cupcup 8,1974 gold badges21 silver badges44 bronze badges 1- 1 If you can't find a lot of info here, there are alire communities at gitter and the ada-lang.io forums which are more active. There is some crossover here (and I tagged your question with alire to hopefully get their attention), but it's a specific package manager that is independent from the language, so the number of folks who may be able to answer your question here might be limited. – Jere Commented Nov 22, 2024 at 17:14
1 Answer
Reset to default 2If you’re using an up-to-date alr (I’m using 2.0.1, which isn’t the latest) you could check this setting (alr help settings
):
- dependencies.shared [Boolean][Default:TRUE] When true, dependencies are downloaded and built in a shared location inside the global cache. When false, dependencies are sandboxed in each workspace.
If true
, release builds are cached (look in alr version
for build folder
) using some long hash. I don’t know what makes up the hash, it’ll be some mix of compiler/flags used for the build.
I’m using aarch64-apple-darwin (Macbook Air M1), and I’ve noticed that using the default gprbuild
some crates (e.g. langkit
, libadalang
) get rebuilt anyway.
本文标签: adaSpeeding up alr build with gtkStack Overflow
版权声明:本文标题:ada - Speeding up alr build with gtk - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736309248a1933951.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论