Skip to content

Commit 677d1f5

Browse files
committed
tmp: stabilize gnu-lld-cc and gnu-cc linker flavors
1 parent 0a4f5d5 commit 677d1f5

File tree

1 file changed

+3
-2
lines changed
  • compiler/rustc_target/src/spec

1 file changed

+3
-2
lines changed

compiler/rustc_target/src/spec/mod.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ pub enum LinkerFlavor {
166166
/// well as modern ones matching the internal linker flavors (`LinkerFlavor`).
167167
#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)]
168168
pub enum LinkerFlavorCli {
169-
// Modern (unstable) flavors, with direct counterparts in `LinkerFlavor`.
169+
// Modern (mostly unstable) flavors, with direct counterparts in `LinkerFlavor`.
170170
Gnu(Cc, Lld),
171171
Darwin(Cc, Lld),
172172
WasmLld(Cc),
@@ -192,7 +192,8 @@ impl LinkerFlavorCli {
192192
/// Returns whether this `-C linker-flavor` option is one of the unstable values.
193193
pub fn is_unstable(&self) -> bool {
194194
match self {
195-
LinkerFlavorCli::Gnu(..)
195+
LinkerFlavorCli::Gnu(Cc::Yes, _) => false,
196+
LinkerFlavorCli::Gnu(Cc::No, _)
196197
| LinkerFlavorCli::Darwin(..)
197198
| LinkerFlavorCli::WasmLld(..)
198199
| LinkerFlavorCli::Unix(..)

0 commit comments

Comments
 (0)