diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2017-12-14 16:23:22 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2017-12-18 16:20:58 +0000 |
commit | e557a3c1d3bc0f77ea669e670029569fd0228598 (patch) | |
tree | dab1bdfef9ad3e6cb2dd8a47b95e136ca17a360f /configure.pri | |
parent | 7f5a314011de475a5954325a089481fbd5e5fc81 (diff) |
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 <oswald.buddenhagen@qt.io>
Diffstat (limited to 'configure.pri')
-rw-r--r-- | configure.pri | 13 |
1 files changed, 13 insertions, 0 deletions
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") |