Commit 6630fae
committed
Use native variable validation
* Use null utility `: ...` to avoid execution
* Use `${parameter:?[word]}` to do ensure the variable is set
* Drop `eval` loop
The error message on Ubuntu reads:
> cc.sh: 205: SPACK_COMPILER_WRAPPER_PATH: Error: compiler wrapper must be invoked by Spack
Previously it was:
> [spack cc]: Error: Spack compiler must be run from Spack! Input 'SPACK_COMPILER_WRAPPER_PATH' is missing.
Signed-off-by: Harmen Stoppels <me@harmenstoppels.nl>1 parent e9fb6c4 commit 6630fae
1 file changed
Lines changed: 7 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 35 | | |
47 | 36 | | |
48 | 37 | | |
| |||
212 | 201 | | |
213 | 202 | | |
214 | 203 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
221 | 211 | | |
222 | 212 | | |
223 | 213 | | |
| |||
0 commit comments