From e0ee2288424952e0445f096ae7800472eac11249 Mon Sep 17 00:00:00 2001 From: Douglas Yung Date: Wed, 22 Jul 2020 14:50:20 -0700 Subject: [PATCH] [clang][test] Fix test for external assemblers This test depends on using the integrated assembler, so make it explicit by specifying -fintegrated-as. --- clang/test/Driver/pch-codegen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/test/Driver/pch-codegen.cpp b/clang/test/Driver/pch-codegen.cpp index c6b6d92..f16f6b5 100644 --- a/clang/test/Driver/pch-codegen.cpp +++ b/clang/test/Driver/pch-codegen.cpp @@ -23,7 +23,7 @@ // Create PCH's object file for -fpch-codegen. // RUN: touch %t/foo-cg.pch -// RUN: %clang -c %t/foo-cg.pch -o %t/foo-cg.o -### 2>&1 | FileCheck %s -check-prefix=CHECK-PCH-CODEGEN-OBJ +// RUN: %clang -c -fintegrated-as %t/foo-cg.pch -o %t/foo-cg.o -### 2>&1 | FileCheck %s -check-prefix=CHECK-PCH-CODEGEN-OBJ // CHECK-PCH-CODEGEN-OBJ: -emit-obj // CHECK-PCH-CODEGEN-OBJ: "-main-file-name" "foo-cg.pch" // CHECK-PCH-CODEGEN-OBJ: "-o" "{{.*}}foo-cg.o" @@ -31,7 +31,7 @@ // Create PCH's object file for -fpch-debuginfo. // RUN: touch %t/foo-di.pch -// RUN: %clang -c %t/foo-di.pch -g -o %t/foo-di.o -### 2>&1 | FileCheck %s -check-prefix=CHECK-PCH-DEBUGINFO-OBJ +// RUN: %clang -c -fintegrated-as %t/foo-di.pch -g -o %t/foo-di.o -### 2>&1 | FileCheck %s -check-prefix=CHECK-PCH-DEBUGINFO-OBJ // CHECK-PCH-DEBUGINFO-OBJ: -emit-obj // CHECK-PCH-DEBUGINFO-OBJ: "-main-file-name" "foo-di.pch" // CHECK-PCH-DEBUGINFO-OBJ: "-o" "{{.*}}foo-di.o" -- 2.7.4