aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/api
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2018-07-30 14:42:43 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2018-08-02 08:40:22 +0000
commitd88fefb8851040282633e12bb0a35760a864c0a1 (patch)
tree7e70715c65cdec8b577df5b14d12a30489924551 /tests/auto/api
parent5dc6209478e070b885acc317dccf5c561ad61ecb (diff)
GCC: Allow the -march option to be set in project files
It is unrealistic to cover all its possible uses via dedicated properties. Task-number: QBS-1018 Change-Id: Iacfb9617ef130255c35766f057c60be9f816bca2 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/api')
-rw-r--r--tests/auto/api/testdata/build-properties-source/build-properties-source.qbs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/api/testdata/build-properties-source/build-properties-source.qbs b/tests/auto/api/testdata/build-properties-source/build-properties-source.qbs
index 49f565b29..485bca79d 100644
--- a/tests/auto/api/testdata/build-properties-source/build-properties-source.qbs
+++ b/tests/auto/api/testdata/build-properties-source/build-properties-source.qbs
@@ -8,6 +8,11 @@ Project {
Depends { name: 'cpp' }
+ Properties {
+ condition: qbs.toolchain.contains("gcc")
+ cpp.cxxFlags: "-march=native"
+ }
+
Group {
cpp.defines: ['WORLD="BANANA"']
files : [ "main.cpp" ]