diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-08-12 13:13:53 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2017-08-12 13:13:53 -0700 |
commit | d57536af86b27779125cb30202d562d6d4fbbfdc (patch) | |
tree | d21a720625ee2f572b2530eb8c4076ff540241d0 /recipes-devtools/clang/common.inc | |
parent | a32eecdf6ca62210381b0a8808829dd867ff06d4 (diff) | |
download | meta-clang-d57536af86b27779125cb30202d562d6d4fbbfdc.tar.gz |
clang: Switch c++ default to gnu++14 standard
Using cmdline options -std doesnt always work e.g. boost
where it uses c++ driver (clang++) to invoke compilation
but then passes '-x c' to choose the language for compilation
Which ends in errors like below
error: invalid argument '-std=c++14' not allowed with 'C'
Therefore change the defaults in driver itself to use gnu++14
which is default with g++ from gcc7+ too.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools/clang/common.inc')
-rw-r--r-- | recipes-devtools/clang/common.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index f5e7acb..3846a1f 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc | |||
@@ -18,6 +18,7 @@ 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 \ | ||
21 | " | 22 | " |
22 | CLANGPATCHES += "${@'file://0007-clang-Enable-SSP-and-PIE-by-default.patch;patchdir=tools/clang' if '${GCCPIE}' else ''}" | 23 | CLANGPATCHES += "${@'file://0007-clang-Enable-SSP-and-PIE-by-default.patch;patchdir=tools/clang' if '${GCCPIE}' else ''}" |
23 | 24 | ||