Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Willemt Raft
Commits
ef956c12
Commit
ef956c12
authored
May 24, 2018
by
Yossi Gottlieb
Committed by
Willem
May 24, 2018
Browse files
Make address sanitizer configurable on macOS. (#67)
parent
64c1560b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
ef956c12
...
...
@@ -14,12 +14,13 @@ CFLAGS += -Iinclude -Werror -Werror=return-type -Werror=uninitialized -Wcast-ali
UNAME
:=
$(
shell
uname
)
ifeq
($(UNAME), Darwin)
ASANFLAGS
=
-fsanitize
=
address
SHAREDFLAGS
=
-dynamiclib
SHAREDEXT
=
dylib
# We need to include the El Capitan specific /usr/includes, aargh
CFLAGS
+=
-I
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/
CFLAGS
+=
-I
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include
CFLAGS
+=
-fsanitize
=
address
CFLAGS
+=
$(ASANFLAGS)
CFLAGS
+=
-Wno-nullability-completeness
else
SHAREDFLAGS
=
-shared
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment