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
Add a comment  | 

1 Answer 1

Reset to default 2

If 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