]> granicus.if.org Git - clang/commitdiff
Fixing broken builds due to r373538, issues with filepath and hexagon toolchain.
authorPuyan Lotfi <puyan@puyan.org>
Thu, 3 Oct 2019 01:19:51 +0000 (01:19 +0000)
committerPuyan Lotfi <puyan@puyan.org>
Thu, 3 Oct 2019 01:19:51 +0000 (01:19 +0000)
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

index e2755b9b93515278dda2ee55e83b90519efd8d00..12606affb7424e65a05f50e8d90f5001119b1ff5 100644 (file)
@@ -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; }