ubuntu下设置clion是使用clang和clang++


链接 http://stackoverflow.com/questions/31725681/how-to-setup-clion-with-portable-clang-on-ubuntu

 

I got the answer from CLion blog and it works and here it goes.

To provide CMake compiler paths, go to Settings | Build, Execution, Deployment | CMake and pass as CMake options:

-D CMAKE_C_COMPILER= -D CMAKE_CXX_COMPILER=

In case CMake fails to find some path to clang libs, etc. you can also set there environment variables:

CC=/usr/bin/clang CXX=/usr/bin/clang++


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM