aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-05-21 13:44:02 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-05-21 13:44:02 +0200
commit6255c4e0533961e8e9989a53071a38b6bd6949dd (patch)
tree0fc399248065f33f637dd6a217054394efe2ac81
parent9cc10c69f2533a71c0e352b534d0b09567e51668 (diff)
downloadrneovim-6255c4e0533961e8e9989a53071a38b6bd6949dd.tar.gz
rneovim-6255c4e0533961e8e9989a53071a38b6bd6949dd.tar.bz2
rneovim-6255c4e0533961e8e9989a53071a38b6bd6949dd.zip
build: FreeBSD: Disable -Wc11-extensions only for clang
From FreeBSD ports patch: https://svnweb.freebsd.org/ports/head/editors/neovim/files/patch-CMakeLists.txt?revision=425833&view=markup References #4363
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ab7595eb11..3e296308d8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -228,7 +228,7 @@ else()
# On FreeBSD 64 math.h uses unguarded C11 extension, which taints clang
# 3.4.1 used there.
- if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
+ if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" AND CMAKE_C_COMPILER_ID MATCHES "Clang")
add_definitions(-Wno-c11-extensions)
endif()
endif()