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
redis
Commits
6534b3e0
"vscode:/vscode.git/clone" did not exist on "70789cf4bb15c7d1552c2eff32edfe7b608589ee"
Commit
6534b3e0
authored
Oct 30, 2018
by
David Carlier
Browse files
Fix clang build.
Some math functions require c11 standard.
parent
0c875c77
Changes
1
Show whitespace changes
Inline
Side-by-side
src/Makefile
View file @
6534b3e0
...
@@ -20,7 +20,11 @@ DEPENDENCY_TARGETS=hiredis linenoise lua
...
@@ -20,7 +20,11 @@ DEPENDENCY_TARGETS=hiredis linenoise lua
NODEPS
:=
clean distclean
NODEPS
:=
clean distclean
# Default settings
# Default settings
STD
=
-std
=
c99
-pedantic
-DREDIS_STATIC
=
''
ifneq
($(CC),clang)
STD
=
-std
=
c99
-pedantic
-DREDIS_STATIC
=
''
else
STD
=
-std
=
c11
-pedantic
-DREDIS_STATIC
=
''
endif
WARN
=
-Wall
-W
-Wno-missing-field-initializers
WARN
=
-Wall
-W
-Wno-missing-field-initializers
OPT
=
$(OPTIMIZATION)
OPT
=
$(OPTIMIZATION)
...
...
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