Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
RedisLabs Raft
Commits
35a41f88
"vscode:/vscode.git/clone" did not exist on "04340e1ff100b080e520e06d14c0c7e95a194909"
Commit
35a41f88
authored
May 06, 2018
by
Yossi Gottlieb
Browse files
Make address sanitizer configurable on macOS.
parent
90eba41c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
35a41f88
...
@@ -14,12 +14,13 @@ CFLAGS += -Iinclude -Werror -Werror=return-type -Werror=uninitialized -Wcast-ali
...
@@ -14,12 +14,13 @@ CFLAGS += -Iinclude -Werror -Werror=return-type -Werror=uninitialized -Wcast-ali
UNAME
:=
$(
shell
uname
)
UNAME
:=
$(
shell
uname
)
ifeq
($(UNAME), Darwin)
ifeq
($(UNAME), Darwin)
ASANFLAGS
=
-fsanitize
=
address
SHAREDFLAGS
=
-dynamiclib
SHAREDFLAGS
=
-dynamiclib
SHAREDEXT
=
dylib
SHAREDEXT
=
dylib
# We need to include the El Capitan specific /usr/includes, aargh
# 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.11.sdk/usr/include/
CFLAGS
+=
-I
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.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
else
SHAREDFLAGS
=
-shared
SHAREDFLAGS
=
-shared
SHAREDEXT
=
so
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