The -m64 flag seems to be set from /usr/share/qbs/modules/cpp/gcc.js because 
you have a 64-bit host and no specified target architecture.

> import qbs
> 
> StaticLibrary {
>     name: "Alarms"
>     Depends { name: "cpp" }
>     cpp.includePaths: [ ...]
>     cpp.libraryPaths: [ ... ]
>     cpp.defines: [ ...]
>     Depends { ... }
>     files: [ ...]
> }
Try settings cpp.architecture: "x86"[0], or if building from the command line, 
use: [1]
> qbs -f /path/to/project.qbs --products productname qbs.architecture:x86_64

[0]: https://doc.qt.io/qbs/cpp-module.html#general-properties
[1]: https://wiki.qt.io/Qbs_Quick_Reference#Command-line_examples

Hope this helps.

 - ely

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Qbs mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qbs

Reply via email to