about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-09-10 23:33:31 +0000
committerbors <bors@rust-lang.org>2015-09-10 23:33:31 +0000
commit5c56887903bec6e1a638f8bdcfe2f22ec0fd000a (patch)
tree01c5d81080be2537eb4f880c4a38e76ed65b7925 /src/rustllvm/RustWrapper.cpp
parent5ff55943a38f2b581bd4ae5d521f57defd1a8b29 (diff)
parent9ac36f46650d0f4d92b5111688d2fb84a50d591f (diff)
downloadrust-5c56887903bec6e1a638f8bdcfe2f22ec0fd000a.tar.gz
rust-5c56887903bec6e1a638f8bdcfe2f22ec0fd000a.zip
Auto merge of #28331 - semarie:openbsd-configure-egcc, r=alexcrichton
under OpenBSD, it could be have present multiples versions of gcc compiler:
  - gcc-4.2 (with patchs) : c/c++ compiler present in `/usr/bin`. It is unusable to build recent LLVM (so rustc too).
  - gcc/g++ -4.9 : c/c++ compiler, installed as third-party with "ports" mechanism. The compiler is installed in `/usr/local` as `egcc` (and `eg++`).

this PR adds probing for `egcc` for `CFG_GCC`, if the first probed `gcc` is too old. It will set `CC` and `CXX` too, in order to pass the variables to LLVM configure if builded.

please note this PR is a first step in order to build rustc under OpenBSD with unpatched tree.

r? @alexcrichton

cc @brson @dhuseby 
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions