macOS build with latest clang from Xcode

A bunch of new warnings appeared by default on macOS compiler provided with Xcode,
including on every usage of sprintf(). Suppress those for now.

The issues with utilizing WANT_ASAN=1 on the make command line with macOS seem
to be resolved in this latest version, so allow it to be specified. Don't specify
it if using a problematic clang version.
This commit is contained in:
nhmall
2023-04-21 11:33:15 -04:00
parent b26ec2f677
commit 9fd719cbf2
4 changed files with 22 additions and 20 deletions

View File

@@ -56,7 +56,8 @@ endif # WANT_WIN_QT
#
#-INCLUDE multiw-3.370
ifeq "$(NEED_ASAN)" "1"
ifeq "$(USE_ASAN)" "1"
CFLAGS+=-fsanitize=address
LFLAGS+=-fsanitize=address
endif