From e557a3c1d3bc0f77ea669e670029569fd0228598 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Thu, 14 Dec 2017 16:23:22 +0100 Subject: Export sanitizer as a global config This is necessary for WebEngine at configure time, to be able to query which of the sanitizers was enabled in order to report unsupported combinations. Task-number: QTBUG-64726 Change-Id: I72f8efe4bed3e14114f885bdae16650f1f23b24b Reviewed-by: Oswald Buddenhagen --- configure.pri | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'configure.pri') diff --git a/configure.pri b/configure.pri index 83c0dee141..021cc1bd1e 100644 --- a/configure.pri +++ b/configure.pri @@ -876,6 +876,19 @@ defineTest(qtConfOutput_shared) { export(CONFIG) } +defineTest(qtConfOutput_sanitizer) { + !$${2}: return() + + # Export this here, so that WebEngine can access it at configure time. + CONFIG += sanitizer + $$qtConfEvaluate("features.sanitize_address"): CONFIG += sanitize_address + $$qtConfEvaluate("features.sanitize_thread"): CONFIG += sanitize_thread + $$qtConfEvaluate("features.sanitize_memory"): CONFIG += sanitize_memory + $$qtConfEvaluate("features.sanitize_undefined"): CONFIG += sanitize_undefined + + export(CONFIG) +} + defineTest(qtConfOutput_architecture) { arch = $$qtConfEvaluate("tests.architecture.arch") buildabi = $$qtConfEvaluate("tests.architecture.buildabi") -- cgit v1.2.3