From 685f671e1d00d2ed93291fd8e1ac34a64df81bab Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 18 Nov 2022 11:35:35 -0500 Subject: [PATCH] [bolt] Pass %cflags in test/X86/is-strip.s Without this, clang builds a binary for macOS on a macOS host, and then the linker complains that it doesn't know the -q flag. Differential Revision: https://reviews.llvm.org/D138306 --- bolt/test/X86/is-strip.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bolt/test/X86/is-strip.s b/bolt/test/X86/is-strip.s index 4366634..aaffb00 100644 --- a/bolt/test/X86/is-strip.s +++ b/bolt/test/X86/is-strip.s @@ -1,6 +1,6 @@ # This test checks whether a binary is stripped or not. -# RUN: %clang++ %p/Inputs/linenumber.cpp -o %t -Wl,-q +# RUN: %clang++ %cflags %p/Inputs/linenumber.cpp -o %t -Wl,-q # RUN: llvm-bolt %t -o %t.out 2>&1 | FileCheck %s -check-prefix=CHECK-NOSTRIP # RUN: cp %t %t.stripped # RUN: llvm-strip -s %t.stripped -- 2.7.4