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
RedisLabs Raft
Commits
35a41f88
Commit
35a41f88
authored
May 06, 2018
by
Yossi Gottlieb
Browse files
Make address sanitizer configurable on macOS.
parent
90eba41c
Changes
1
Show whitespace changes
Inline
Side-by-side
Makefile
View file @
35a41f88
...
...
@@ -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)
else
SHAREDFLAGS
=
-shared
SHAREDEXT
=
so
...
...
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