# Optional processor flags in jll packages

**URL:** https://discourse.julialang.org/t/optional-processor-flags-in-jll-packages/42215
**Category:** General Usage
**Tags:** binarybuilder
**Created:** [June 28, 2020, 10:54pm UTC](https://discourse.julialang.org/t/optional-processor-flags-in-jll-packages/42215 "2020-06-28T22:54:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hros](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hros](https://discourse.julialang.org/u/hros)
#### Post date: [June 28, 2020, 10:54pm UTC](https://discourse.julialang.org/t/optional-processor-flags-in-jll-packages/42215/1 "2020-06-28T22:54:18Z")

</div>

I’m building a [jll package](https://github.com/JuliaPackaging/Yggdrasil#jll-packages) of a c library. The library has some processor specific configuration flags, namely setting AVX512 for processors that support it.

Is it possible to generate several versions (e.g. with/without avx512) during the BinaryBuilder.run\_wizard() and later have the package system download the best compatible version when the user `] add`s the package based on the processor options?

---

<div class="post-metadata">

### Author: ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)
#### Post date: [June 29, 2020, 12:03am UTC](https://discourse.julialang.org/t/optional-processor-flags-in-jll-packages/42215/2 "2020-06-29T00:03:42Z")

</div>

It’s interesting that you’re asking this question now. The latest stable version of `BinaryBuilder` can only build generic libraries, so the short answer to your question is “no”. The development version of `BinaryBuilder` has the ability to build libraries for four different `x86-64` targets: the generic `x86-64`, `sandybridge`, `haswell`, and `skylake-avx512`. However the JLL wrappers still can’t handle these new microarchitectures, then also in this case the short answer is “no”. This is way this new capability is not documented nor advertised anywhere.

That said, we’re working on this, so hopefully the answer will become “yes” in a not too far future.
