summaryrefslogtreecommitdiffstats
path: root/configure.pri
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2019-11-01 13:21:33 +0100
committerRobert Loehning <robert.loehning@qt.io>2019-11-14 15:45:02 +0100
commit6e42ed217c58341966f41df31f47ed05a1f61a42 (patch)
tree01d94fd54687401b211089d89d191335ac8a894e /configure.pri
parent0ec40c21c13232906bbbf26a16278fb0da263722 (diff)
configure: Add sanitizer "fuzzer-no-link"
Adds instrumentation for fuzzing to the binaries but links to the usual main function instead of a fuzzer's. The similar sanitizer "fuzzer" should then be used only for building the test itself. Requires clang 6 or higher. Change-Id: I24ee1f018b0b97f2977dc86fbdc29a164d7c4e01 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'configure.pri')
-rw-r--r--configure.pri2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.pri b/configure.pri
index 97b9f3bf63..e717a5d305 100644
--- a/configure.pri
+++ b/configure.pri
@@ -53,6 +53,8 @@ defineTest(qtConfCommandline_sanitize) {
qtConfCommandlineSetInput("sanitize_thread", "yes")
} else: equals(val, "memory") {
qtConfCommandlineSetInput("sanitize_memory", "yes")
+ } else: equals(val, "fuzzer-no-link") {
+ qtConfCommandlineSetInput("sanitize_fuzzer_no_link", "yes")
} else: equals(val, "undefined") {
qtConfCommandlineSetInput("sanitize_undefined", "yes")
} else {