[Qbs] qbs.defaultBuildVariant declaration has no effect

Orgad Shaneh orgads at gmail.com
Fri Oct 17 10:52:16 CEST 2025


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'm not sure which was the last working version.

- Orgad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20251017/555e86a5/attachment-0001.htm>


More information about the Qbs mailing list