aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/cc/xlc.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/build-data/cc/xlc.txt')
-rw-r--r--src/build-data/cc/xlc.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/build-data/cc/xlc.txt b/src/build-data/cc/xlc.txt
index 0ab45242a..8762aecd1 100644
--- a/src/build-data/cc/xlc.txt
+++ b/src/build-data/cc/xlc.txt
@@ -13,3 +13,9 @@ altivec -> "-qaltivec"
<so_link_commands>
default -> "$(CXX) -qmkshrobj"
</so_link_commands>
+
+<sanitizers>
+default -> "-qcheck=all"
+address -> "-qcheck=bounds:stackclobber:unset"
+undefined -> "-qcheck=nullptr:divzero"
+</sanitizers>