diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-08-13 21:57:25 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2017-08-13 21:57:25 -0700 |
commit | 1e97a2401dadfb645242ed7f1a56c0a060d2f678 (patch) | |
tree | 7cc43935bf77fdebccbbcbfc22af8c83dab595b3 | |
parent | 8f301c740d32a7edbd387abc2f89dc880be62e70 (diff) | |
download | meta-clang-1e97a2401dadfb645242ed7f1a56c0a060d2f678.tar.gz |
clang: Revert back to gnu++98 as default
many packages need fixing for true c++11 and newer
standard, may be eventually they will reach there
for now lets keep the defaults as it is
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes-devtools/clang/clang/0008-clang-Default-to-gnu-14-for-c-standard.patch | 28 | ||||
-rw-r--r-- | recipes-devtools/clang/common.inc | 1 |
2 files changed, 0 insertions, 29 deletions
diff --git a/recipes-devtools/clang/clang/0008-clang-Default-to-gnu-14-for-c-standard.patch b/recipes-devtools/clang/clang/0008-clang-Default-to-gnu-14-for-c-standard.patch deleted file mode 100644 index 74bfc69..0000000 --- a/recipes-devtools/clang/clang/0008-clang-Default-to-gnu-14-for-c-standard.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | From 521fdfcc2031d22b50125b3295b837229c77abd6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 12 Aug 2017 12:56:06 -0700 | ||
4 | Subject: [PATCH 8/8] clang: Default to gnu++14 for c++ standard | ||
5 | |||
6 | GCC 7.x and newer default to same as well | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | lib/Frontend/CompilerInvocation.cpp | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp | ||
14 | index b2c14554a4..eed925fac4 100644 | ||
15 | --- a/lib/Frontend/CompilerInvocation.cpp | ||
16 | +++ b/lib/Frontend/CompilerInvocation.cpp | ||
17 | @@ -1667,7 +1667,7 @@ void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK, | ||
18 | if (T.isPS4()) | ||
19 | LangStd = LangStandard::lang_gnucxx11; | ||
20 | else | ||
21 | - LangStd = LangStandard::lang_gnucxx98; | ||
22 | + LangStd = LangStandard::lang_gnucxx14; | ||
23 | break; | ||
24 | case InputKind::RenderScript: | ||
25 | LangStd = LangStandard::lang_c99; | ||
26 | -- | ||
27 | 2.14.1 | ||
28 | |||
diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index 3846a1f..f5e7acb 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc | |||
@@ -18,7 +18,6 @@ CLANGPATCHES = "\ | |||
18 | file://0004-clang-Prepend-trailing-to-sysroot.patch;patchdir=tools/clang \ | 18 | file://0004-clang-Prepend-trailing-to-sysroot.patch;patchdir=tools/clang \ |
19 | file://0005-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch;patchdir=tools/clang \ | 19 | file://0005-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch;patchdir=tools/clang \ |
20 | file://0006-clang-Define-releative-gcc-installation-dir.patch;patchdir=tools/clang \ | 20 | file://0006-clang-Define-releative-gcc-installation-dir.patch;patchdir=tools/clang \ |
21 | file://0008-clang-Default-to-gnu-14-for-c-standard.patch;patchdir=tools/clang \ | ||
22 | " | 21 | " |
23 | CLANGPATCHES += "${@'file://0007-clang-Enable-SSP-and-PIE-by-default.patch;patchdir=tools/clang' if '${GCCPIE}' else ''}" | 22 | CLANGPATCHES += "${@'file://0007-clang-Enable-SSP-and-PIE-by-default.patch;patchdir=tools/clang' if '${GCCPIE}' else ''}" |
24 | 23 | ||