File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,22 @@ The default for this modifier is `-whole-archive`.
201
201
More implementation details about this modifier can be found in
202
202
[ ` whole-archive ` documentation for rustc] .
203
203
204
+ ### Linking modifiers: ` verbatim `
205
+
206
+ This modifier is compatible with all linking kinds.
207
+
208
+ ` +verbatim ` means that rustc itself won't add any target-specified library prefixes or suffixes
209
+ (like ` lib ` or ` .a ` ) to the library name, and will try its best to ask for the same thing from the
210
+ linker.
211
+
212
+ ` -verbatim ` means that rustc will either add a target-specific prefix and suffix to the library
213
+ name before passing it to linker, or won't prevent linker from implicitly adding it.
214
+
215
+ The default for this modifier is ` -verbatim ` .
216
+
217
+ More implementation details about this modifier can be found in
218
+ [ ` verbatim ` documentation for rustc] .
219
+
204
220
#### ` dylib ` versus ` raw-dylib `
205
221
206
222
On Windows, linking against a dynamic library requires that an import library
@@ -288,4 +304,5 @@ restrictions as [regular function parameters].
288
304
[ regular function parameters ] : functions.md#attributes-on-function-parameters
289
305
[ `bundle` documentation for rustc ] : ../../rustc/command-line-arguments.html#linking-modifiers-bundle
290
306
[ `whole-archive` documentation for rustc ] : ../../rustc/command-line-arguments.html#linking-modifiers-whole-archive
307
+ [ `verbatim` documentation for rustc ] : ../../rustc/command-line-arguments.html#linking-modifiers-verbatim
291
308
[ `dylib` versus `raw-dylib` ] : #dylib-versus-raw-dylib
You can’t perform that action at this time.
0 commit comments