aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/options.py
diff options
context:
space:
mode:
authorFriedemann Kleint <[email protected]>2025-06-30 15:12:23 +0200
committerFriedemann Kleint <[email protected]>2025-07-02 11:11:33 +0200
commit7b8592161d6c4d63c511a352fdf25d49ab0a1906 (patch)
tree6a1444377aefe589ccb72a9b8b7bc1fccddaef8b /build_scripts/options.py
parentdba615b67a854b3aa34c163f78727480d8da2ad6 (diff)
build system: Extend sanitizer supportHEADdev
Enable address sanitizer for MSVC, which has gained support in the mean time. Add thread sanitizer with a warning. Task-number: PYSIDE-2221 Change-Id: Iaa5a377fdb1cf33c1dcad42df5528a3a3499c773 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
Diffstat (limited to 'build_scripts/options.py')
-rw-r--r--build_scripts/options.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/build_scripts/options.py b/build_scripts/options.py
index 5963a3982..ba4039e99 100644
--- a/build_scripts/options.py
+++ b/build_scripts/options.py
@@ -208,6 +208,7 @@ class CommandMixin:
('verbose-build', None, 'Verbose build'),
('quiet', None, 'Quiet build'),
('sanitize-address', None, 'Build with address sanitizer'),
+ ('sanitize-thread', None, 'Build with thread sanitizer'),
('shorter-paths', None, 'Use shorter paths'),
('doc-build-online', None, 'Build online documentation'),
('qtpaths=', None, 'Path to qtpaths'),
@@ -290,6 +291,7 @@ class CommandMixin:
self.log_level = "info"
self.verbose_build = False
self.sanitize_address = False
+ self.sanitize_thread = False
self.snapshot_build = False
self.shorter_paths = False
self.doc_build_online = False
@@ -444,6 +446,7 @@ class CommandMixin:
log.setLevel(logging.DEBUG)
OPTION['SANITIZE_ADDRESS'] = self.sanitize_address
+ OPTION['SANITIZE_THREAD'] = self.sanitize_thread
OPTION['SHORTER_PATHS'] = self.shorter_paths
OPTION['DOC_BUILD_ONLINE'] = self.doc_build_online
if self.unity: