From 949726950a4ac5c8674e902dc33c09b48fc7434c Mon Sep 17 00:00:00 2001 From: Simonas Kazlauskas Date: Sat, 10 Apr 2021 21:18:33 +0300 Subject: [PATCH] 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) --- src/conditional-compilation.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/conditional-compilation.md b/src/conditional-compilation.md index 0ec20f3f6..8085cbfab 100644 --- a/src/conditional-compilation.md +++ b/src/conditional-compilation.md @@ -132,12 +132,15 @@ Example values: ### `target_family` -Key-value option set at most once with the target's operating system value. +Key-value option providing a more generic description of a target, such as the family of the +operating systems or architectures that the target generally falls into. Any number of +`target_family` key-value pairs can be set. Example values: * `"unix"` * `"windows"` +* `"wasm"` ### `unix` and `windows`