[llvm-dev] CMake warning when compiling Clang/LLVM

Jonas Hahnfeld via llvm-dev llvm-dev at lists.llvm.org
Fri Jan 26 12:46:31 PST 2018


Am 2018-01-26 21:36, schrieb Tom Stellard via llvm-dev:
> On 01/26/2018 12:32 PM, Simone Atzeni via llvm-dev wrote:
>> Hi,
>> 
>> when I run cmake I get the following warning:
>> 
>> ---------------------------------------------------------------------------------------
>> CMake Warning at cmake/modules/HandleLLVMStdlib.cmake:24 (message):
>>   Can't specify libc++ with '-stdlib='
>> Call Stack (most recent call first):
>>   cmake/config-ix.cmake:15 (include)
>>   CMakeLists.txt:580 (include)
>> ---------------------------------------------------------------------------------------
>> 
>> I am using GCC 4.8.5 to build on a x86_64 machine with RedHat OS.
>> 
>> Any idea why?
> 
> What arguments are you passing to CMake and which version of LLVM are 
> you
> trying to build?

That's probably -DLLVM_ENABLE_LIBCXX=ON and the warning tells you the 
reason: -stdlib= is only supported if compiling with Clang, you can't 
specify it with GCC.

Cheers,
Jonas


More information about the llvm-dev mailing list