summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-06-04 13:21:26 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-06-04 13:21:26 +0200
commite58f2aa8e515e5faf54ec9364a2b7972f9761dcd (patch)
tree7686ee33c1153ca36eed7ee3c132f74f55dbecff /src
parent6363ba8e5113af7336357ef2832fe1bce4fbdb84 (diff)
Request ubsan-vptr correctly from GN
GN will also set use_rtti on its own based on this. Change-Id: I5812b3c26250f19810ab2d6dfb063316e27d4938 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/core/config/common.pri5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/config/common.pri b/src/core/config/common.pri
index 6f3ce75b3..18bd358f3 100644
--- a/src/core/config/common.pri
+++ b/src/core/config/common.pri
@@ -108,10 +108,7 @@ optimize_size: gn_args += optimize_for_size=true
sanitize_address: gn_args += is_asan=true
sanitize_thread: gn_args += is_tsan=true
sanitize_memory: gn_args += is_msan=true
- # rtti is required for a specific check of ubsan, -fsanitize=vptr, which uses the runtime
- # type information to check that correct derived objects are assigned to base pointers. Without
- # rtti, linking would fail at build time.
- sanitize_undefined: gn_args += is_ubsan=true use_rtti=true
+ sanitize_undefined: gn_args += is_ubsan=true is_ubsan_vptr=true
}
qtConfig(webengine-v8-snapshot) {