aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/sanitizer/sanitizer.cpp
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2019-12-12 20:47:27 +0100
committerIvan Komissarov <ABBAPOH@gmail.com>2020-01-24 09:11:04 +0000
commit9c282ff7bd13b25118da3e6d7a46e75fe78caf4c (patch)
tree84bbea00869bd2902e91ffdd464b4ff27db339ce /tests/auto/blackbox/testdata/sanitizer/sanitizer.cpp
parent1e7875f00e406b762065f0ea2fe30836829fdd42 (diff)
MSVC: Use compiler driver for linking
To be able to use cpp.driverFlags and cpp.driverLinkerFlags with clang- cl. This patchset makes possible to use clang-cl with "- fsanitize=address" flag without passing the sanitizer libraries manually to the linker There's also a behavior change in which linker is used - clang-cl uses native linker by default. Old behavior can be restored by setting cpp.linkerVariant to "lld" Fixes: QBS-1522 Change-Id: I9528ce40aa5fdfab987672b15fffd830fa2d6376 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/auto/blackbox/testdata/sanitizer/sanitizer.cpp')
-rw-r--r--tests/auto/blackbox/testdata/sanitizer/sanitizer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/sanitizer/sanitizer.cpp b/tests/auto/blackbox/testdata/sanitizer/sanitizer.cpp
new file mode 100644
index 000000000..4a7c3ee32
--- /dev/null
+++ b/tests/auto/blackbox/testdata/sanitizer/sanitizer.cpp
@@ -0,0 +1,4 @@
+int main(int argc, char *argv[])
+{
+ return 0;
+}