From b708837c7c8fc2701d58d50b6a34e4c98c3280c9 Mon Sep 17 00:00:00 2001 From: Steven Walter Date: Sat, 27 Aug 2016 15:22:55 -0400 Subject: [PATCH] rust-llvm: skip unittests These fail to build, apparently because some files do not include the appropriate headers, e.g. and --- .../0001-Don-t-build-unittests.patch | 34 +++++++++++++++++++ recipes-devtools/rust/rust-source.bb | 1 + 2 files changed, 35 insertions(+) create mode 100644 recipes-devtools/rust/files/rust-llvm/0001-Don-t-build-unittests.patch diff --git a/recipes-devtools/rust/files/rust-llvm/0001-Don-t-build-unittests.patch b/recipes-devtools/rust/files/rust-llvm/0001-Don-t-build-unittests.patch new file mode 100644 index 0000000..7a297d3 --- /dev/null +++ b/recipes-devtools/rust/files/rust-llvm/0001-Don-t-build-unittests.patch @@ -0,0 +1,34 @@ +From eee79cc95f57434c4b530da96c88494e9b5d056b Mon Sep 17 00:00:00 2001 +From: Steven Walter +Date: Sat, 27 Aug 2016 13:20:48 -0400 +Subject: [PATCH] Don't build unittests + +--- + Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Makefile b/Makefile +index 2b9468a..2bb30f6 100644 +--- a/Makefile ++++ b/Makefile +@@ -31,7 +31,7 @@ ifeq ($(BUILD_DIRS_ONLY),1) + OPTIONAL_DIRS := tools/clang/utils/TableGen + else + DIRS := lib/Support lib/TableGen utils lib/IR lib tools/llvm-shlib \ +- tools/llvm-config tools docs cmake unittests ++ tools/llvm-config tools docs cmake + OPTIONAL_DIRS := projects bindings + endif + +@@ -39,7 +39,7 @@ ifeq ($(BUILD_EXAMPLES),1) + OPTIONAL_DIRS += examples + endif + +-EXTRA_DIST := test unittests llvm.spec include win32 Xcode ++EXTRA_DIST := test llvm.spec include win32 Xcode + + include $(LEVEL)/Makefile.config + +-- +2.7.4 + diff --git a/recipes-devtools/rust/rust-source.bb b/recipes-devtools/rust/rust-source.bb index cbc3a39..ebf5eb4 100644 --- a/recipes-devtools/rust/rust-source.bb +++ b/recipes-devtools/rust/rust-source.bb @@ -24,5 +24,6 @@ SRC_URI_append = "\ file://rust/0009-mk-platform.mk-pass-C-crate_hash-to-builds.patch \ file://rust/0010-mk-allow-changing-the-platform-configuration-source-.patch \ file://rust/0011-Get-rid-of-the-.note-interpretation-of-rustc-dylib-m.patch \ + file://rust-llvm/0001-Don-t-build-unittests.patch;patchdir=src/llvm \ file://rust-installer/0001-add-option-to-disable-rewriting-of-install-paths.patch;patchdir=src/rust-installer \ "