diff options
Diffstat (limited to 'protobufHeaders.patch')
-rw-r--r-- | protobufHeaders.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/protobufHeaders.patch b/protobufHeaders.patch new file mode 100644 index 000000000000..e2d6d222fdfe --- /dev/null +++ b/protobufHeaders.patch @@ -0,0 +1,23 @@ +From ce010778096db14de3b682313fc0376e0c8a6ada Mon Sep 17 00:00:00 2001 +From: William Wold <wm@wmww.sh> +Date: Tue, 11 Sep 2018 14:58:04 -0700 +Subject: [PATCH] Use -std=gnu++14 instead of -std=c++14 to fix precompiled + headers issue on Arch + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e98e309e3a..7990617e75 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -62,7 +62,7 @@ set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "${build_types}" FORCE) + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "${build_types}") + + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread -g -Werror -Wall -pedantic -Wextra -fPIC") +-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -g -std=c++14 -Werror -Wall -fno-strict-aliasing -pedantic -Wnon-virtual-dtor -Wextra -fPIC") ++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -g -std=gnu++14 -Werror -Wall -fno-strict-aliasing -pedantic -Wnon-virtual-dtor -Wextra -fPIC") + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--as-needed") + set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--as-needed") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed") |