Skip to content

Commit 9497269

Browse files
committed
Adjust the definition of target_family
This generalizes the `target_family` to allow it being specified more than once and apply to other properties than just the operating system family. Of particular interest is an ability to match architectures that are a part of a family of architecutes (e.g. various versions of ARM, WASM or other targets)
1 parent e1abb17 commit 9497269

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/conditional-compilation.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,15 @@ Example values:
132132

133133
### `target_family`
134134

135-
Key-value option set at most once with the target's operating system value.
135+
Key-value option providing a more generic description of a target, such as the family of the
136+
operating systems or architectures that the target generally falls into. Any number of
137+
`target_family` key-value pairs can be set.
136138

137139
Example values:
138140

139141
* `"unix"`
140142
* `"windows"`
143+
* `"wasm"`
141144

142145
### `unix` and `windows`
143146

0 commit comments

Comments
 (0)