diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-05-27 22:08:54 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-05-28 01:12:30 +0530 |
| commit | 0e1a71c5af10ef2171c654febddb14127fcf4a21 (patch) | |
| tree | 7e02c8be2aeaa6381f22cd0ea234ad21da5a0bd9 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | db1914ef7e30925ff876275d993e2b05f3744fbb (diff) | |
| parent | d323c14f631576c639219d18f2574b4f2380172a (diff) | |
| download | rust-0e1a71c5af10ef2171c654febddb14127fcf4a21.tar.gz rust-0e1a71c5af10ef2171c654febddb14127fcf4a21.zip | |
Rollup merge of #25792 - koobs:patch-1, r=alexcrichton
Currently, there are two conditional blocks that exist to check for "clang or gcc"
On line 866:
```
if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
then
err "either clang or gcc is required"
fi
```
and on line 1019:
```
if [ -z "$CC" -a -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
then
err "either clang or gcc is required"
fi
```
Given the order of the clauses, this results in the "either clang or gcc is required" error from the earlier block, (even) when CC is set.
The expected behaviour is to honour user-flags, in this case CC.
Aside from removing all hand-holdy compiler checks in favour of actual compiler *feature* checks, this change removes the redundant former block in favour of the latter block, which appears designed to allow the expected behaviour.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
