XCode: Use address sanitizer in debug builds

This commit is contained in:
Celtic Minstrel 2016-09-01 18:34:43 -04:00
parent 9bc92e657b
commit 60d543cf3b

View file

@ -5922,6 +5922,10 @@
"\"$(SRCROOT)/lib\"",
);
MACH_O_TYPE = mh_execute;
OTHER_CPLUSPLUSFLAGS = (
"$(OTHER_CFLAGS)",
"-fsanitize=address",
);
PRODUCT_NAME = unit_tests;
};
name = Debug;
@ -5964,6 +5968,10 @@
"\"$(SRCROOT)/lib\"",
"$(PROJECT_DIR)/lib",
);
OTHER_CPLUSPLUSFLAGS = (
"$(OTHER_CFLAGS)",
"-fsanitize=address",
);
PRODUCT_NAME = wesnothd;
};
name = Debug;
@ -6008,6 +6016,10 @@
"$(inherited)",
"$(PROJECT_DIR)/lib",
);
OTHER_CPLUSPLUSFLAGS = (
"$(OTHER_CFLAGS)",
"-fsanitize=address",
);
OTHER_LDFLAGS = (
"-lz",
"-lbz2",