blob: 0d67fa54cf4d3080052c33eeba0a4361346f6160 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
Project {
CppApplication {
name: "app-map"
files: ["main.cpp"]
// lld-link has different flag for map files, test it by switching to "lld" linkerVariant
Properties { condition: qbs.toolchain.includes("clang-cl"); cpp.linkerVariant: "lld" }
cpp.generateLinkerMapFile: true
}
CppApplication {
name: "app-nomap"
files: ["main.cpp"]
Properties { condition: qbs.toolchain.includes("clang-cl"); cpp.linkerVariant: "lld" }
cpp.generateLinkerMapFile: false
}
CppApplication {
name: "app-nomap-default"
files: ["main.cpp"]
}
Probe {
id: toolchainProbe
property bool isUsed: qbs.toolchain.includes("msvc")
|| qbs.toolchain.includes("gcc")
configure: {
console.info("use test: " + isUsed);
}
}
}
|