diff options
author | David Carlier <devnexen@gmail.com> | 2018-10-30 13:23:43 +0000 |
---|---|---|
committer | David Carlier <devnexen@gmail.com> | 2018-10-30 13:23:43 +0000 |
commit | 6534b3e09ed23324e22a4b57382707f52e22ee81 (patch) | |
tree | aadf7a032fbb7a1a9a1f97a6d8dd835997df930a /src/Makefile | |
parent | 0c875c7751e3672f20225ab3b20fdb0322a8e4ad (diff) | |
download | redis-6534b3e09ed23324e22a4b57382707f52e22ee81.tar.gz |
Fix clang build.
Some math functions require c11 standard.
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index 912cbc19f..eec172d0e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -20,7 +20,11 @@ DEPENDENCY_TARGETS=hiredis linenoise lua NODEPS:=clean distclean # 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 OPT=$(OPTIMIZATION) |