Skip to content

Commit 7968fa6

Browse files
committed
clean up Makefile ASAN comments
1 parent c7d56f5 commit 7968fa6

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

Makefile

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,7 @@ MAKE_FILE= Makefile
195195
#
196196
# The following Address Sanitizer (ASAN) are common to both RHEL9.7 (Linux) and macOS 26.2.
197197
#
198-
# By default, the Address Sanitizer is NOT enabled, not compiled into calc.
199-
# To enable the Address Sanitizer, uncomment the appropriate lines in Makefile.local !!!
198+
# By default, the Address Sanitizer is NOT enabled.
200199
#
201200
FSANITIZE:= -Wno-invalid-command-line-argument
202201
FSANITIZE+= -fno-common
@@ -229,17 +228,13 @@ FSANITIZE+= -fsanitize=vptr
229228
#
230229
# See: https://releases.llvm.org/17.0.1/tools/clang/docs/AddressSanitizer.html
231230
#
232-
# See the FSANITIZE comment block in Makefile.config for common FSANITIZE values and more info.
233-
#
234231
# To use the Address Sanitizer, uncomment this set set of lines and recompile (make clobber all):
235232
#
236233
# For more info see: https://github.com/google/sanitizers/wiki/AddressSanitizer
237234
# See also: https://developer.apple.com/documentation/xcode/diagnosing-memory-thread-and-crash-issues-early
238235
# And also: https://github.com/google/sanitizers/wiki/AddressSanitizerFlags
239236
#
240-
# We recommend, for ease of debugging, building a static calc ("BLD_TYPE= calc-static-only").
241-
#
242-
# For Homebrew gcc version 15:
237+
# For Homebrew gcc version 15 only:
243238
#
244239
# CC:= gcc-15
245240
# DEBUG:= -g2
@@ -251,9 +246,12 @@ FSANITIZE+= -fsanitize=vptr
251246
# CCWARN+= -Werror
252247
# COPT:= -O0
253248
#
249+
# For Apple clang only:
250+
#
254251
# FSANITIZE+= -fsanitize=nullability-arg
255252
# FSANITIZE+= -fsanitize=nullability-assign
256253
# FSANITIZE+= -fsanitize=nullability-return
254+
#
257255
# CFLAGS+= ${FSANITIZE} -fstack-protector-all
258256
# LDFLAGS+= ${FSANITIZE}
259257
# DEBUG:= -ggdb3
@@ -271,26 +269,22 @@ FSANITIZE+= -fsanitize=vptr
271269
# libasan-11.5.0-11.el9.x86_64
272270
# libubsan-11.5.0-11.el9.x86_64
273271
#
274-
# See the FSANITIZE comment block in Makefile.config for common FSANITIZE values and more info.
275-
#
276272
# To use the Address Sanitizer, uncomment this set set of lines and recompile (make clobber all):
277273
#
278274
# For more info see: https://github.com/google/sanitizers/wiki/AddressSanitizer
279275
# And also: https://github.com/google/sanitizers/wiki/AddressSanitizerFlags
280276
#
281-
# We recommend, for ease of debugging, building a static calc ("BLD_TYPE= calc-static-only").
282-
#
283277
# Be sure you have the following dnf packages installed:
284278
#
285279
# dnf install readline-devel ncurses-libs ncurses-devel libasan libubsan
286280
#
287281
# CCWARN+= -Wall
288282
# CCWARN+= -pedantic
289283
# CCWARN+= -Werror
284+
# COPT:= -O0
290285
#
291286
# CFLAGS+= ${FSANITIZE} -fstack-protector-all
292287
# LDFLAGS+= ${FSANITIZE}
293-
# COPT:= -O0
294288
# DEBUG:= -ggdb3
295289
####
296290

0 commit comments

Comments
 (0)