[clang] [Driver] Use empty multilib file in another test (PR #111352)

Oliver Stannard via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 7 02:38:08 PDT 2024


https://github.com/ostannard created https://github.com/llvm/llvm-project/pull/111352

This makes the test independent of the one provided by a toolchain clang is built into, which can cause the output of
-print-multi-flags-experimental to change.

>From 453eefa2b9b28b3cddf5ceafdab4cdc723ef5a3c Mon Sep 17 00:00:00 2001
From: Oliver Stannard <oliver.stannard at arm.com>
Date: Mon, 7 Oct 2024 10:34:47 +0100
Subject: [PATCH] [Driver] Use empty multilib file in another test

This makes the test independent of the one provided by a toolchain clang
is built into, which can cause the output of
-print-multi-flags-experimental to change.
---
 clang/test/Driver/aarch64-multilib-rcpc3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/test/Driver/aarch64-multilib-rcpc3.c b/clang/test/Driver/aarch64-multilib-rcpc3.c
index 88b23de5a65109..5146ec15458fc9 100644
--- a/clang/test/Driver/aarch64-multilib-rcpc3.c
+++ b/clang/test/Driver/aarch64-multilib-rcpc3.c
@@ -1,4 +1,4 @@
-// RUN: %clang --target=aarch64-none-elf -march=armv8.9-a+rcpc3 -print-multi-flags-experimental -c %s 2>&1 | FileCheck %s
+// RUN: %clang --target=aarch64-none-elf -march=armv8.9-a+rcpc3 -print-multi-flags-experimental -multi-lib-config=%S/Inputs/multilib/empty.yaml -c %s 2>&1 | FileCheck %s
 
 // The purpose of this regression test is to make sure that when
 // compile options are converted into multilib selection flags, no



More information about the cfe-commits mailing list