[PATCH] D138306: [bolt] Pass %cflags in test/X86/is-strip.s

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 18 08:36:49 PST 2022


thakis created this revision.
thakis added a reviewer: Amir.
Herald added a reviewer: rafauler.
Herald added subscribers: treapster, ayermolo.
Herald added a reviewer: maksfb.
Herald added a project: All.
thakis requested review of this revision.
Herald added a subscriber: yota9.

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.


https://reviews.llvm.org/D138306

Files:
  bolt/test/X86/is-strip.s


Index: bolt/test/X86/is-strip.s
===================================================================
--- bolt/test/X86/is-strip.s
+++ 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138306.476495.patch
Type: text/x-patch
Size: 490 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221118/2e8babe6/attachment.bin>


More information about the llvm-commits mailing list