From 40ec03f1e67dc52167cbd0a0644b0d19dced65bb Mon Sep 17 00:00:00 2001 From: Puyan Lotfi Date: Thu, 3 Oct 2019 01:19:51 +0000 Subject: [PATCH] Fixing broken builds due to r373538, issues with filepath and hexagon toolchain. It appears there are some issues with the hexagon toolchain, and also the file path for the library file. If this doesn't fix the remaining breakages I will attempt a revert. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373552 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/InterfaceStubs/driver-test.c | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/test/InterfaceStubs/driver-test.c b/test/InterfaceStubs/driver-test.c index e2755b9b93..12606affb7 100644 --- a/test/InterfaceStubs/driver-test.c +++ b/test/InterfaceStubs/driver-test.c @@ -1,12 +1,19 @@ -// RUN: %clang -x c -o libfoo.so -emit-interface-stubs %s %S/object.c %S/weak.cpp && \ -// RUN: llvm-nm libfoo.so 2>&1 | FileCheck %s +// REQUIRES: x86-registered-target -// RUN: %clang -x c -o libfoo.so -shared %s %S/object.c %S/weak.cpp && \ -// RUN: llvm-nm libfoo.so 2>&1 | FileCheck %s +// RUN: %clang -target x86_64-unknown-linux-gnu -x c -o %t1.so -emit-interface-stubs %s %S/object.c %S/weak.cpp && \ +// RUN: llvm-nm %t1.so 2>&1 | FileCheck --check-prefix=CHECK-IFS %s -// CHECK-DAG: data -// CHECK-DAG: foo -// CHECK-DAG: strongFunc -// CHECK-DAG: weakFunc +// RUN: %clang -target x86_64-unknown-linux-gnu -x c -o %t2.so -shared %s %S/object.c %S/weak.cpp && \ +// RUN: llvm-nm %t2.so 2>&1 | FileCheck --check-prefix=CHECK-SO %s -int foo(int bar) { return 42 + 1844; } \ No newline at end of file +// CHECK-IFS-DAG: data +// CHECK-IFS-DAG: foo +// CHECK-IFS-DAG: strongFunc +// CHECK-IFS-DAG: weakFunc + +// CHECK-SO-DAG: data +// CHECK-SO-DAG: foo +// CHECK-SO-DAG: strongFunc +// CHECK-SO-DAG: weakFunc + +int foo(int bar) { return 42 + 1844; } -- 2.40.0