Skip to content

Commit a785328

Browse files
authored
Rollup merge of #110337 - iterion:patch-1, r=jyn514
Correct default value for default-linker-libraries This setting is false by default according to rustc code here: https://github.com./rust-lang/rust/blob/master/compiler/rustc_session/src/options.rs#L1236 I tested on a project and confirmed the behavior described. First, with no value, the `-nodefaultlibs` linker flag is present. Setting this to false has no effect, as well. The linker flag still appears. Setting it to true removes the linker flag as expected.
2 parents eb05246 + 7a07c74 commit a785328

File tree

1 file changed

+2
-2
lines changed
  • src/doc/rustc/src/codegen-options

1 file changed

+2
-2
lines changed

src/doc/rustc/src/codegen-options/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ Note: The [`-g` flag][option-g-debug] is an alias for `-C debuginfo=2`.
8484
This flag controls whether or not the linker includes its default libraries.
8585
It takes one of the following values:
8686

87-
* `y`, `yes`, `on`, `true` or no value: include default libraries (the default).
88-
* `n`, `no`, `off` or `false`: exclude default libraries.
87+
* `y`, `yes`, `on`, `true`: include default libraries.
88+
* `n`, `no`, `off` or `false` or no value: exclude default libraries (the default).
8989

9090
For example, for gcc flavor linkers, this issues the `-nodefaultlibs` flag to
9191
the linker.

0 commit comments

Comments
 (0)