xmake-io / xmake-repo

📦 An official xmake package repository
https://xrepo.xmake.io
Apache License 2.0
688 stars 399 forks source link

I would like to limit the amount of targets for LLVM #5496

Open Lorac opened 4 weeks ago

Lorac commented 4 weeks ago

Is your feature request related to a problem? Please describe.

When building the package llvm, it builds for all targets, -DLLVM_TARGETS_TO_BUILD=all. I would like that to be configurable so the build takes less time, and not everyone needs all the targets at once.

Describe the solution you'd like

Some configuration options that I could use to only build for targets X86, or any others.

Describe alternatives you've considered

No response

Additional context

No response

star-hengxing commented 4 weeks ago

I don't have time to add more package configs map to llvm build option and test it. You can open a pr to improve it or copy the llvm package description to your project and customize the cmake option.

https://github.com/xmake-io/xmake-repo/blob/93d40d533f516809834d233527a26690e05975bc/packages/l/llvm/xmake.lua#L182