summaryrefslogtreecommitdiff
path: root/share/qbs/modules/cpp/freebsd-gcc.qbs
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2017-09-12 11:54:57 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2017-09-27 10:27:39 +0000
commit72eedbb0a4a4acbe5cafe574a185438299f07367 (patch)
treee5778c0056be0bd076f1ae23aa8877486651a604 /share/qbs/modules/cpp/freebsd-gcc.qbs
parent21cc614bd8bbb4d43a50edd478b19b4ca52a6d04 (diff)
downloadqbs-72eedbb0a4a4acbe5cafe574a185438299f07367.tar.gz
Use Module.priority to choose the right cpp module instance
Replace the negating conditions in our cpp instances with module priorities. This removes the need of knowing about all other more specialized instances in more general instances. Change-Id: I511ba11f2cb69ea1458b786a2db4309de8910ebf Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share/qbs/modules/cpp/freebsd-gcc.qbs')
-rw-r--r--share/qbs/modules/cpp/freebsd-gcc.qbs1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/qbs/modules/cpp/freebsd-gcc.qbs b/share/qbs/modules/cpp/freebsd-gcc.qbs
index c0106495f..724f242ff 100644
--- a/share/qbs/modules/cpp/freebsd-gcc.qbs
+++ b/share/qbs/modules/cpp/freebsd-gcc.qbs
@@ -34,6 +34,7 @@ import "freebsd.js" as FreeBSD
UnixGCC {
condition: qbs.targetOS && qbs.targetOS.contains("freebsd") &&
qbs.toolchain && qbs.toolchain.contains("gcc")
+ priority: 1
targetSystem: "freebsd" + (qbs.hostOS.contains("freebsd") ? FreeBSD.hostKernelRelease() : "")