[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


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

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

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

How can I resolve this ?

Thank You,
-------------- 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