Commit bafa22b
authored
Prevent users setting CHPL_LLVM_CONFIG to a bad value (#29036)
Adds a check to prevent users setting CHPL_LLVM_CONFIG to a bad value,
resulting in confusing errors later.
For example, if a user set `CHPL_LLVM_CONFIG=$(which llvm-config)`, they
would expect it to work. But if that llvm is too old, they could get
strange errors that do not tell them what actually went wrong (and might
look like a bug in Chapel). Or, a user could set `CHPL_LLVM_CONFIG` to
some garbage value.
Fixed by just validating `CHPL_LLVM_CONFIG` with a quick check that it
exists and is the correct version. Full validation is done at a later
step.
[Reviewed by @arifthpe]1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
282 | 289 | | |
283 | 290 | | |
284 | 291 | | |
| |||
377 | 384 | | |
378 | 385 | | |
379 | 386 | | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
380 | 397 | | |
381 | 398 | | |
382 | 399 | | |
| |||
0 commit comments