[llvm-dev] Compiling LLVM with locally built clang | Errors
Flamedoge via llvm-dev
llvm-dev at lists.llvm.org
Mon Feb 27 03:35:27 PST 2017
This might be error from `clang -std=c++11 a.c`. I would dump out and see
what commands CMake is running to check if it's feeding c++ options to c
files.
Regards,
Kevin
On Sun, Feb 26, 2017 at 11:11 PM, SANJAY SRIVALLABH SINGAPURAM via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> 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
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170227/06065ab3/attachment.html>
More information about the llvm-dev
mailing list