summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/common.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-08-12 13:13:53 -0700
committerKhem Raj <raj.khem@gmail.com>2017-09-24 11:45:18 -0700
commita7380dfdb9f7080cb552090f93d089e971558c80 (patch)
treebf9baf3ae6e54106b3aebdf6c7b608889c139327 /recipes-devtools/clang/common.inc
parent59773576b7adb3129cf77d19442b5a83937b3c84 (diff)
downloadmeta-clang-a7380dfdb9f7080cb552090f93d089e971558c80.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.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc
index 75df1b2..e850320 100644
--- a/recipes-devtools/clang/common.inc
+++ b/recipes-devtools/clang/common.inc
@@ -21,6 +21,7 @@ CLANGPATCHES = "\
21 file://0005-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch;patchdir=tools/clang \ 21 file://0005-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch;patchdir=tools/clang \
22 file://0006-clang-Define-releative-gcc-installation-dir.patch;patchdir=tools/clang \ 22 file://0006-clang-Define-releative-gcc-installation-dir.patch;patchdir=tools/clang \
23 file://0008-clang-Fix-ldso-for-musl-on-x86-and-x32-architectures.patch;patchdir=tools/clang \ 23 file://0008-clang-Fix-ldso-for-musl-on-x86-and-x32-architectures.patch;patchdir=tools/clang \
24 file://0008-clang-Default-to-gnu-14-for-c-standard.patch;patchdir=tools/clang \
24" 25"
25CLANGPATCHES += "${@'file://0007-clang-Enable-SSP-and-PIE-by-default.patch;patchdir=tools/clang' if '${GCCPIE}' else ''}" 26CLANGPATCHES += "${@'file://0007-clang-Enable-SSP-and-PIE-by-default.patch;patchdir=tools/clang' if '${GCCPIE}' else ''}"
26 27