TL;DR The problem appears to be related to binutils and not clang.
I am having the same problem as the submitter with Clang 3.5.0-9. Compiling
the following simple hello world program:
#include
int main()
{
std::cout << "Hello World\n";
return 0;
}
$ clang++ -flto -c hello.cpp
$ clang++
Package: clang-3.6
Version: 1:3.6~svn218612-1
Severity: normal
Hi,
I am trying to enable link time optimization with clang++. I have a
vague memory of having used it before with 3.4 or 3.5 so I tried again
and nope, doesn't work anymore:
$ clang++-3.6 -flto build/CMakeFiles/CMakeTmp/testCXXCompi
2 matches
Mail list logo