Skip to content

Commit 5cadd62

Browse files
authored
fix: fix target-specific documentation (#452)
1 parent 883552d commit 5cadd62

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

docs/backends/pixi-build-cmake.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ For target-specific configuration, platform arguments completely replace the bas
7878
[package.build.config]
7979
extra-args = ["-DCMAKE_BUILD_TYPE=Release"]
8080

81-
[package.build.config.targets.linux-64]
81+
[package.build.target.linux-64.config]
8282
extra-args = ["-DCMAKE_BUILD_TYPE=Debug", "-DLINUX_FLAG=ON"]
8383
# Result for linux-64: ["-DCMAKE_BUILD_TYPE=Debug", "-DLINUX_FLAG=ON"]
8484
```
@@ -102,7 +102,7 @@ For target-specific configuration, platform environment variables are merged wit
102102
[package.build.config]
103103
env = { CMAKE_VERBOSE_MAKEFILE = "OFF", COMMON_VAR = "base" }
104104

105-
[package.build.config.targets.linux-64]
105+
[package.build.target.linux-64.config]
106106
env = { COMMON_VAR = "linux", LINUX_VAR = "value" }
107107
# Result for linux-64: { CMAKE_VERBOSE_MAKEFILE = "OFF", COMMON_VAR = "linux", LINUX_VAR = "value" }
108108
```
@@ -134,7 +134,7 @@ For target-specific configuration, platform-specific globs completely replace th
134134
[package.build.config]
135135
extra-input-globs = ["*.txt"]
136136

137-
[package.build.config.targets.linux-64]
137+
[package.build.target.linux-64.config]
138138
extra-input-globs = ["*.txt", "*.linux", "linux-configs/**/*"]
139139
# Result for linux-64: ["*.txt", "*.linux", "linux-configs/**/*"]
140140
```
@@ -158,7 +158,7 @@ For target-specific configuration, platform compilers completely replace the bas
158158
[package.build.config]
159159
compilers = ["cxx"]
160160

161-
[package.build.config.targets.linux-64]
161+
[package.build.target.linux-64.config]
162162
compilers = ["c", "cxx", "cuda"]
163163
# Result for linux-64: ["c", "cxx", "cuda"]
164164
```

docs/backends/pixi-build-mojo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ For target-specific configuration, platform compilers completely replace the bas
193193
[package.build.config]
194194
compilers = ["mojo"]
195195

196-
[package.build.config.targets.linux-64]
196+
[package.build.target.linux-64.config]
197197
compilers = ["mojo", "c", "cuda"]
198198
# Result for linux-64: ["mojo", "c", "cuda"]
199199
```

docs/backends/pixi-build-python.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ For target-specific configuration, platform-specific noarch setting overrides th
8383
[package.build.config]
8484
noarch = true
8585

86-
[package.build.config.targets.win-64]
86+
[package.build.target.win-64.config]
8787
noarch = false # Windows needs platform build
8888
# Result for win-64: false
8989
```
@@ -107,7 +107,7 @@ For target-specific configuration, platform environment variables are merged wit
107107
[package.build.config]
108108
env = { PYTHONPATH = "/base/path", COMMON_VAR = "base" }
109109

110-
[package.build.config.targets.win-64]
110+
[package.build.target.win-64.config]
111111
env = { COMMON_VAR = "windows", WIN_SPECIFIC = "value" }
112112
# Result for win-64: { PYTHONPATH = "/base/path", COMMON_VAR = "windows", WIN_SPECIFIC = "value" }
113113
```
@@ -138,7 +138,7 @@ For target-specific configuration, platform-specific globs completely replace th
138138
[package.build.config]
139139
extra-input-globs = ["*.py"]
140140

141-
[package.build.config.targets.win-64]
141+
[package.build.target.win-64.config]
142142
extra-input-globs = ["*.py", "*.dll", "*.pyd", "windows-resources/**/*"]
143143
# Result for win-64: ["*.py", "*.dll", "*.pyd", "windows-resources/**/*"]
144144
```
@@ -162,7 +162,7 @@ For target-specific configuration, platform compilers completely replace the bas
162162
[package.build.config]
163163
compilers = []
164164

165-
[package.build.config.targets.win-64]
165+
[package.build.target.win-64.config]
166166
compilers = ["c", "cxx"]
167167
# Result for win-64: ["c", "cxx"] (only on Windows)
168168
```
@@ -203,7 +203,7 @@ For target-specific configuration, platform-specific globs completely replace th
203203
[package.build.config]
204204
extra-args = ["-Cbuilddir=mybuilddir"]
205205

206-
[package.build.config.targets.win-64]
206+
[package.build.target.win-64.config]
207207
extra-args = ["-Cbuilddir=foo"]
208208
# Result for win-64: ["-Cbuilddir=foo"]
209209
```
@@ -229,7 +229,7 @@ For target-specific configuration, platform-specific setting overrides the base:
229229
[package.build.config]
230230
ignore-pyproject-manifest = false
231231

232-
[package.build.config.targets.win-64]
232+
[package.build.target.win-64.config]
233233
ignore-pyproject-manifest = true # Ignore pyproject.toml on Windows only
234234
# Result for win-64: true
235235
```

docs/backends/pixi-build-rattler-build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ For target-specific configuration, platform-specific globs completely replace th
113113
[package.build.config]
114114
extra-input-globs = ["*.yaml", "*.md"]
115115

116-
[package.build.config.targets.linux-64]
116+
[package.build.target.linux-64.config]
117117
extra-input-globs = ["*.yaml", "*.md", "*.sh", "patches-linux/**/*"]
118118
# Result for linux-64: ["*.yaml", "*.md", "*.sh", "patches-linux/**/*"]
119119
```

docs/backends/pixi-build-rust.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ For target-specific configuration, platform arguments completely replace the bas
116116
[package.build.config]
117117
extra-args = ["--release"]
118118

119-
[package.build.config.targets.linux-64]
119+
[package.build.target.linux-64.config]
120120
extra-args = ["--features", "linux-specific", "--target", "x86_64-unknown-linux-gnu"]
121121
# Result for linux-64: ["--features", "linux-specific", "--target", "x86_64-unknown-linux-gnu"]
122122
```
@@ -140,7 +140,7 @@ For target-specific configuration, platform environment variables are merged wit
140140
[package.build.config]
141141
env = { RUST_LOG = "info", COMMON_VAR = "base" }
142142

143-
[package.build.config.targets.linux-64]
143+
[package.build.target.linux-64.config]
144144
env = { COMMON_VAR = "linux", CARGO_PROFILE_RELEASE_LTO = "true" }
145145
# Result for linux-64: { RUST_LOG = "info", COMMON_VAR = "linux", CARGO_PROFILE_RELEASE_LTO = "true" }
146146
```
@@ -172,7 +172,7 @@ For target-specific configuration, platform-specific globs completely replace th
172172
[package.build.config]
173173
extra-input-globs = ["*.txt"]
174174

175-
[package.build.config.targets.linux-64]
175+
[package.build.target.linux-64.config]
176176
extra-input-globs = ["*.txt", "*.so", "linux-configs/**/*"]
177177
# Result for linux-64: ["*.txt", "*.so", "linux-configs/**/*"]
178178
```
@@ -203,7 +203,7 @@ For target-specific configuration:
203203
[package.build.config]
204204
ignore-cargo-manifest = false
205205

206-
[package.build.config.targets.linux-64]
206+
[package.build.target.linux-64.config]
207207
ignore-cargo-manifest = true
208208
# Result for linux-64: Cargo.toml metadata will be ignored
209209
```
@@ -227,7 +227,7 @@ For target-specific configuration, platform compilers completely replace the bas
227227
[package.build.config]
228228
compilers = ["rust"]
229229

230-
[package.build.config.targets.linux-64]
230+
[package.build.target.linux-64.config]
231231
compilers = ["rust", "c", "cxx"]
232232
# Result for linux-64: ["rust", "c", "cxx"]
233233
```

docs/key_concepts/compilers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ compilers = ["c", "cxx", "fortran"]
181181
compilers = ["cxx"]
182182

183183
# Linux needs additional CUDA support
184-
[package.build.config.targets.linux-64]
184+
[package.build.target.linux-64.config]
185185
compilers = ["cxx", "cuda"]
186186

187187
# Windows needs additional C compiler for some dependencies
188-
[package.build.config.targets.win-64]
188+
[package.build.target.win-64.config]
189189
compilers = ["c", "cxx"]
190190
```

0 commit comments

Comments
 (0)