about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorAdam Sunderland <iterion@gmail.com>2023-04-14 17:02:45 -0400
committerAdam Sunderland <adam@kittycad.io>2023-04-14 17:26:48 -0400
commit7a07c749a5d424bad109c8e1601257e7406fe9ae (patch)
tree5e5ff2b63ff05a859daa5043ff2284458fb31c3a /src/doc
parent276fa294809e914b1d04192392d256814aa5ce1a (diff)
downloadrust-7a07c749a5d424bad109c8e1601257e7406fe9ae.tar.gz
rust-7a07c749a5d424bad109c8e1601257e7406fe9ae.zip
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.
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/rustc/src/codegen-options/index.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc/src/codegen-options/index.md b/src/doc/rustc/src/codegen-options/index.md
index 62347f169a5..d7c6a884fc8 100644
--- a/src/doc/rustc/src/codegen-options/index.md
+++ b/src/doc/rustc/src/codegen-options/index.md
@@ -84,8 +84,8 @@ Note: The [`-g` flag][option-g-debug] is an alias for `-C debuginfo=2`.
 This flag controls whether or not the linker includes its default libraries.
 It takes one of the following values:
 
-* `y`, `yes`, `on`, `true` or no value: include default libraries (the default).
-* `n`, `no`, `off` or `false`: exclude default libraries.
+* `y`, `yes`, `on`, `true`: include default libraries.
+* `n`, `no`, `off` or `false` or no value: exclude default libraries (the default).
 
 For example, for gcc flavor linkers, this issues the `-nodefaultlibs` flag to
 the linker.