mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
add Makefile.local comments for macOS reduce dependency chains
This commit is contained in:
@@ -26,7 +26,9 @@
|
||||
####
|
||||
# RHEL Diagnosing memory, thread, and crash issues
|
||||
#
|
||||
# This comment block was tested for:
|
||||
# For more info see: https://github.com/google/sanitizers/wiki/AddressSanitizer
|
||||
#
|
||||
# This comment block was tested under:
|
||||
#
|
||||
# RHEL9 gcc version 11.3.1 20221121 (Red Hat 11.3.1-4) (GCC)
|
||||
#
|
||||
@@ -38,7 +40,7 @@
|
||||
#
|
||||
# UNSUPPORTED_FSANITIZE:= -fsanitize=nullability-arg -fsanitize=nullability-assign
|
||||
#
|
||||
# Uncomment these values to disnose memory, thread, and crash issues on RHEL:
|
||||
# Uncomment these lines:
|
||||
#
|
||||
# DEBUG:= -O0 -g
|
||||
# FSANITIZE:= -fsanitize=undefined -fsanitize=address -fsanitize=bool -fsanitize=bounds
|
||||
@@ -55,7 +57,9 @@
|
||||
####
|
||||
# macOS Diagnosing memory, thread, and crash issues
|
||||
#
|
||||
# This comment block was tested for:
|
||||
# For more info see: https://github.com/google/sanitizers/wiki/AddressSanitizer
|
||||
#
|
||||
# This comment block was tested under:
|
||||
#
|
||||
# macOS 13.5 with clang version 14.0.3 (clang-1403.0.22.14.1)
|
||||
#
|
||||
@@ -67,7 +71,7 @@
|
||||
#
|
||||
# UNSUPPORTED_FSANITIZE:= -fsanitize-nullability-return
|
||||
#
|
||||
# Uncomment these values to disnose memory, thread, and crash issues on macOS:
|
||||
# Uncomment these lines:
|
||||
#
|
||||
# DEBUG:= -O0 -g
|
||||
# FSANITIZE:= -fsanitize=undefined -fsanitize=address -fsanitize=bool -fsanitize=bounds
|
||||
@@ -81,3 +85,13 @@
|
||||
# LDFLAGS+= -Wno-invalid-command-line-argument ${FSANITIZE} -fno-omit-frame-pointer
|
||||
# CALC_ENV+= ASAN_OPTIONS=detect_stack_use_after_return=1
|
||||
####
|
||||
|
||||
####
|
||||
# To reduce dependency chains under macOS:
|
||||
#
|
||||
# This comment block was tested under:
|
||||
#
|
||||
# macOS 13.5 with clang version 14.0.3 (clang-1403.0.22.14.1)
|
||||
#
|
||||
# LDFLAGS+= '-Wl,-dead_strip_dylibs -Wl,-dead_strip'
|
||||
####
|
||||
|
Reference in New Issue
Block a user