Commit ff7fa0c
committed
Always use
Certain enum cases, such as `freeBSD`, contain capital letters. However, target triples must be entirely in lower case. The enum case's raw value reflects this, but our custom initializer for the Triple structure does not use it, resulting in an invalid target triple. This makes the generated SDK unusable if the user passed only the desired architecture instead of a complete triple.
To address this problem, the initializer should always request the rawValue explicitly.rawValue when using OS enum as string1 parent ab16fe7 commit ff7fa0c
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
0 commit comments