]> git.lizzy.rs Git - rust.git/commit
configure: Enable libc++ with LLVM with clang
authorAlex Crichton <alex@alexcrichton.com>
Mon, 14 Apr 2014 16:49:34 +0000 (09:49 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 17 Apr 2014 18:11:39 +0000 (11:11 -0700)
commit32a81d1e161a8b4a498c88ddb79955775d18fbfd
tree63c802362f6a81e094f416faa3f6b57c8fd6cfc2
parent30ff17f809869dec37d7b501fb532dc88fd47832
configure: Enable libc++ with LLVM with clang

When clang is enabled, also pass through --enable-libcpp to LLVM's configure
command line to help it pick up the most recent c++ runtime library. This also
changes the mklldeps.py script to pick up on whether LLVM was linked against
stdc++ or c++ based on the --cxxflags that llvm-config prints.

In an ongoing attempt to update LLVM, the bots need to update their C compilers
to something that supports c++11 (LLVM recently switched). The OSX bots are
running Lion (10.7), which only supports up to gcc 4.2 and clang 3.2. Apparently
the libstdc++ is too old (even on the most updated command line tools) for LLVM,
but using libc++ instead appears to work just fine.
configure
src/etc/mklldeps.py