File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -681,6 +681,18 @@ cargo-features = ["profile-rustflags"]
681
681
rustflags = [ " -C" , " ..." ]
682
682
```
683
683
684
+ To set this in a profile in Cargo configuration, you need to use either
685
+ ` -Z profile-rustflags ` or ` [unstable] ` table to enable it. For example,
686
+
687
+ ``` toml
688
+ # .cargo/config.toml
689
+ [unstable ]
690
+ profile-rustflags = true
691
+
692
+ [profile .release ]
693
+ rustflags = [ " -C" , " ..." ]
694
+ ```
695
+
684
696
### rustdoc-map
685
697
* Tracking Issue: [ #8296 ] ( https://github.com/rust-lang/cargo/issues/8296 )
686
698
@@ -1378,6 +1390,18 @@ serde = "1.0.117"
1378
1390
codegen-backend = " cranelift"
1379
1391
```
1380
1392
1393
+ To set this in a profile in Cargo configuration, you need to use either
1394
+ ` -Z codegen-backend ` or ` [unstable] ` table to enable it. For example,
1395
+
1396
+ ``` toml
1397
+ # .cargo/config.toml
1398
+ [unstable ]
1399
+ codegen-backend = true
1400
+
1401
+ [profile .dev .package .foo ]
1402
+ codegen-backend = " cranelift"
1403
+ ```
1404
+
1381
1405
### patch-in-config
1382
1406
1383
1407
The ` -Z patch-in-config ` flag, and the corresponding support for
You can’t perform that action at this time.
0 commit comments