[QBS] Per file compile switches

Stephan Gatzka stephan.gatzka at gmail.com
Sat Aug 15 18:16:14 CEST 2015

Hi again!

I miss a functionality I could easily achieve with cmake.

To make a reproducible build with gcc, I need to call gcc with -frandom-seed=<hash>.

As the man page of gcc states:
"The number should be different for every file you compile"

The hash itself could be easily calculated with qbs.getHash(), but I don't know
how to call gcc with a parameter that changes for every different file?

Any suggestions? 



More information about the Qbs mailing list