]> granicus.if.org Git - clang/commitdiff
Add triple to new test
authorTeresa Johnson <tejohnson@google.com>
Fri, 31 Mar 2017 02:36:47 +0000 (02:36 +0000)
committerTeresa Johnson <tejohnson@google.com>
Fri, 31 Mar 2017 02:36:47 +0000 (02:36 +0000)
Attempt to fix bot errors from r299152 by using clang_cc1 and specifying
target triple to compile step.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@299170 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/function-sections.c

index b4a72031cb2c620577589ad3390ba178e825a3e2..fc4a02390c42004c4b10eedad214e8a8f99bb4a9 100644 (file)
@@ -10,7 +10,7 @@
 // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -S -fno-data-sections -fdata-sections -o - < %s | FileCheck %s --check-prefix=DATA_SECT
 
 // Try again through a clang invocation of the ThinLTO backend.
-// RUN: %clang -O2 %s -flto=thin -c -o %t.o
+// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -O2 %s -flto=thin -o %t.o
 // RUN: llvm-lto -thinlto -o %t %t.o
 // RUN: %clang -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -S -ffunction-sections -o - | FileCheck %s --check-prefix=FUNC_SECT
 // RUN: %clang -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -S -fdata-sections -o - | FileCheck %s --check-prefix=DATA_SECT