From d57536af86b27779125cb30202d562d6d4fbbfdc Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 12 Aug 2017 13:13:53 -0700 Subject: 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 --- recipes-devtools/clang/common.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'recipes-devtools/clang/common.inc') 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 = "\ file://0004-clang-Prepend-trailing-to-sysroot.patch;patchdir=tools/clang \ file://0005-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch;patchdir=tools/clang \ file://0006-clang-Define-releative-gcc-installation-dir.patch;patchdir=tools/clang \ + file://0008-clang-Default-to-gnu-14-for-c-standard.patch;patchdir=tools/clang \ " CLANGPATCHES += "${@'file://0007-clang-Enable-SSP-and-PIE-by-default.patch;patchdir=tools/clang' if '${GCCPIE}' else ''}" -- cgit v1.2.3-54-g00ecf