码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2016-10-04 15:55:43      阅读:541      评论:0      收藏:0      [点我收藏+]

标签:

链接 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++

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

标签:

原文地址:http://www.cnblogs.com/or2-/p/5930406.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!