Skip to content

Commit 7a07c74

Browse files
committed
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 that setting this to false has no effect, the linker flag still appears. Setting it to true removes the linker flag.
1 parent 276fa29 commit 7a07c74

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)