<div dir="ltr"><div><div>Hello,<br><br></div>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++},<span style="font-family:monospace"><br><br></span></div><div><font size="4"><span style="font-family:monospace">cmake <font size="4"><span style="font-family:monospace">-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++</span></font> ../llvm_src<br></span></font></div><div><div><br>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.<br><font size="4"><span style="font-family:monospace"><br></span></font></div><div><font size="4"><span style="font-family:monospace">int main(){return 0;} ( which was used during the config, found in build/CMakeFiles/CMakeErrors.log )</span></font><br><br></div><div>How can I resolve this ?<br><br></div><div>Thank You,<br></div><div>Sanjay<br></div></div></div>