From 06d6c55db3bd2ae38567e5133ffcfb9fd4905150 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 25 Aug 2019 23:30:39 -0700 Subject: clang: Update to latest on 9.x release Fix libcxx build on mips Signed-off-by: Khem Raj --- recipes-devtools/clang/clang.inc | 2 +- .../0001-libcxx-Fix-build-breakage-on-mips.patch | 31 ++++++++++++++++++++++ recipes-devtools/clang/common.inc | 1 + 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 recipes-devtools/clang/clang/0001-libcxx-Fix-build-breakage-on-mips.patch diff --git a/recipes-devtools/clang/clang.inc b/recipes-devtools/clang/clang.inc index 590eb23..58dc452 100644 --- a/recipes-devtools/clang/clang.inc +++ b/recipes-devtools/clang/clang.inc @@ -8,7 +8,7 @@ MAJOR_VER = "9" MINOR_VER = "0" PATCH_VER = "0" -SRCREV ?= "67a4a12d61bfb10b2410b53c5a43ef9b4a03de7d" +SRCREV ?= "d0b88fce0a2175316792359b54d41864be416d16" PV = "${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}" BRANCH = "release/${MAJOR_VER}.x" diff --git a/recipes-devtools/clang/clang/0001-libcxx-Fix-build-breakage-on-mips.patch b/recipes-devtools/clang/clang/0001-libcxx-Fix-build-breakage-on-mips.patch new file mode 100644 index 0000000..aab18a8 --- /dev/null +++ b/recipes-devtools/clang/clang/0001-libcxx-Fix-build-breakage-on-mips.patch @@ -0,0 +1,31 @@ +From 8a53ec82043a463f0606427ee3e48df80b1233f8 Mon Sep 17 00:00:00 2001 +From: Mikhail Maltsev +Date: Tue, 20 Aug 2019 10:19:55 +0000 +Subject: [PATCH] [libcxx] Fix build breakage on mips + +Fixes https://bugs.llvm.org/show_bug.cgi?id=43011 caused by +https://reviews.llvm.org/D63284. + +Committing as obvious. + +llvm-svn: 369364 +--- + libcxx/include/__locale | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libcxx/include/__locale b/libcxx/include/__locale +index d382e4d8a94..2b6982fc681 100644 +--- a/libcxx/include/__locale ++++ b/libcxx/include/__locale +@@ -409,7 +409,7 @@ public: + static const mask xdigit = _ISxdigit; + static const mask blank = _ISblank; + #if defined(__mips__) +- static const mask __regex_word = static_cast(_ISbit(15)); ++ static const mask __regex_word = static_cast(_ISbit(15)); + #else + static const mask __regex_word = 0x80; + #endif +-- +2.23.0 + diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index 82f5bfd..e3c8f9a 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc @@ -28,6 +28,7 @@ SRC_URI = "\ file://0018-clang-Initial-implementation-of-fmacro-prefix-map-an.patch \ file://0019-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch \ file://0020-clang-default-to-lp64d-ABI-and-rv64gc-ISA.patch \ + file://0001-libcxx-Fix-build-breakage-on-mips.patch \ " # Fallback to no-PIE if not set -- cgit v1.2.3-54-g00ecf