Skip to content
Snippets Groups Projects
Commit dd026ff0 authored by Thibault Wittemberg's avatar Thibault Wittemberg
Browse files

build: use C++14 language dialect

This commit makes the ios client compliant with C++14

Change-Id: I32934146c21a1ed26adc60789b0f5180aaef5b89
parent cfe0eba3
Branches
No related tags found
No related merge requests found
...@@ -1255,7 +1255,8 @@ ...@@ -1255,7 +1255,8 @@
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; CLANG_CXX_LANGUAGE_STANDARD = "c++14";
CLANG_CXX_LIBRARY = "compiler-default";
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
...@@ -1284,7 +1285,8 @@ ...@@ -1284,7 +1285,8 @@
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; CLANG_CXX_LANGUAGE_STANDARD = "c++14";
CLANG_CXX_LIBRARY = "compiler-default";
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
......
...@@ -120,7 +120,7 @@ do ...@@ -120,7 +120,7 @@ do
CFLAGS+=" -O3" CFLAGS+=" -O3"
fi fi
CXXFLAGS="-stdlib=libc++ $CFLAGS" CXXFLAGS="-stdlib=libc++ -std=c++14 $CFLAGS"
LDFLAGS="$CFLAGS" LDFLAGS="$CFLAGS"
./autogen.sh || exit 1 ./autogen.sh || exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment