From 37e90d4cf76afe209ccfc55c8359cc7df3bd3be8 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Sun, 25 Aug 2019 12:41:30 -0700 Subject: [PATCH] Add missing patch This patch seems to be: https://reviews.llvm.org/D66176 Signed-off-by: David Abdurachmanov --- ...modules.cpp-test-to-work-when-build-direc.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch diff --git a/0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch b/0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch new file mode 100644 index 0000000..686fd91 --- /dev/null +++ b/0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch @@ -0,0 +1,14 @@ +diff --git a/clang/test/Driver/modules.cpp b/clang/test/Driver/modules.cpp +--- a/clang/test/Driver/modules.cpp ++++ b/clang/test/Driver/modules.cpp +@@ -15,7 +15,8 @@ + // RUN: %clang -std=c++2a %t/module.pcm -S -o %t/module.pcm.o -v 2>&1 | FileCheck %s --check-prefix=CHECK-COMPILE + // + // CHECK-COMPILE: -cc1 {{.*}} {{-emit-obj|-S}} +-// CHECK-COMPILE-SAME: -o {{.*}}.{{pcm.o|s}} ++// CHECK-COMPILE-SAME: {{ -o }} ++// CHECK-COMPILE-SAME: module{{2*}}.{{pcm.o|s}} + // CHECK-COMPILE-SAME: -x pcm + // CHECK-COMPILE-SAME: {{.*}}.pcm + +