30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
|
From 1d224b408bc6754bcea9e0b226d6c440f5a4f8fd Mon Sep 17 00:00:00 2001
|
||
|
From: Nikita Popov <npopov@redhat.com>
|
||
|
Date: Fri, 2 Sep 2022 16:30:15 +0200
|
||
|
Subject: Mark fopenmp-implicit-rpath as NoArgumentUnused
|
||
|
|
||
|
We pass this option unconditionally in LDFLAGS, make sure this
|
||
|
does not warn if openmp is not used, as this may break some
|
||
|
build systems.
|
||
|
---
|
||
|
clang/include/clang/Driver/Options.td | 3 ++-
|
||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
|
||
|
index 3cab37b21aaf..4452364f92da 100644
|
||
|
--- a/clang/include/clang/Driver/Options.td
|
||
|
+++ b/clang/include/clang/Driver/Options.td
|
||
|
@@ -4116,7 +4116,8 @@ defm openmp_implicit_rpath: BoolFOption<"openmp-implicit-rpath",
|
||
|
LangOpts<"OpenMP">,
|
||
|
DefaultTrue,
|
||
|
PosFlag<SetTrue, [], "Set rpath on OpenMP executables">,
|
||
|
- NegFlag<SetFalse>>;
|
||
|
+ NegFlag<SetFalse>,
|
||
|
+ BothFlags<[NoArgumentUnused]>>;
|
||
|
def r : Flag<["-"], "r">, Flags<[LinkerInput,NoArgumentUnused]>,
|
||
|
Group<Link_Group>;
|
||
|
def save_temps_EQ : Joined<["-", "--"], "save-temps=">, Flags<[CC1Option, FlangOption, NoXarchOption]>,
|
||
|
--
|
||
|
2.37.1
|
||
|
|