[Qbs] qbs.defaultBuildVariant declaration has no effect
Christian Kandeler
christian.kandeler at qt.io
Fri Oct 17 12:29:48 CEST 2025
On 10/17/25 10:52 AM, Orgad Shaneh wrote:
> Hi,
>
> I've noticed another change in qbs behavior.
>
> I have products that declare qbs.defaultBuildVariant: "release"
>
> DynamicLibrary {
> Depends { name: "cpp" }
> qbs.defaultBuildVariant: "release"
> // ...
> }
>
> Then I run qbs resolve and qbs build without overriding
> defaultBuildVariant, and I expect it to be release.
>
> This worked with previous versions of qbs, but with 3.0 it defaults to
> debug.
I cannot reproduce that. A library specified as above is built with
release flags.
Christian
More information about the Qbs
mailing list