]> git.lizzy.rs Git - rust.git/commit
Auto merge of #28331 - semarie:openbsd-configure-egcc, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 10 Sep 2015 23:33:31 +0000 (23:33 +0000)
committerbors <bors@rust-lang.org>
Thu, 10 Sep 2015 23:33:31 +0000 (23:33 +0000)
commit5c56887903bec6e1a638f8bdcfe2f22ec0fd000a
tree01c5d81080be2537eb4f880c4a38e76ed65b7925
parent5ff55943a38f2b581bd4ae5d521f57defd1a8b29
parent9ac36f46650d0f4d92b5111688d2fb84a50d591f
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
configure