[llvm-dev] Compiling LLVM with locally built clang | Errors

SANJAY SRIVALLABH SINGAPURAM via llvm-dev llvm-dev at lists.llvm.org
Sun Feb 26 23:11:49 PST 2017


Hello,

I issued the following command to point the build to use clang and clang++,
from a local llvm build directory included in PATH, instead of
/usr/bin/{cc,c++},

cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ../llvm_src

The configuration failed with the error stating the compiler didn't
recognize '-std=c++11' flag, whereas clang compiled a dummy c++ file with
warnings.

int main(){return 0;} ( which was used during the config, found in
build/CMakeFiles/CMakeErrors.log )

How can I resolve this ?

Thank You,
Sanjay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170227/380fa3d8/attachment.html>


More information about the llvm-dev mailing list