Commit dbbe477
committed
Use
Instead of `RVV_OFF`.
This checks if the value appears to match any of several hard-coded
truthy or falsy values. Typically the literal values `ON` or `OFF`
would be used, as is typically done when passing boolean `-D...`
options to `cmake` on the command-line. It is typically more useful
to pass `OFF` here than `ON`, becuase the default is `ON`, as noted
in the linked section of the zlib-ng readme.
At least for now, empty, blank, and otherwise unrecognized values
are simply ignored. Recognized values are always "normalized" as
either `ON` (if truthy) or `OFF` (if falsy).RISCV_WITH_RVV as the env var, taking ON/OFF values1 parent 7579d46 commit dbbe477
1 file changed
+20
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
19 | 37 | | |
20 | 38 | | |
21 | 39 | | |
| |||
0 commit comments