Message266976
The --with-lto support added in issue25702 can work with clang, but on a Linux distribution such as ubuntu 16.04 with clang installed you get:
$ CC=clang ./configure --with-lto
...
$ make profile-opt
Error: Cannot perform PGO build because llvm-profdata was not found in PATH
Please add it to PATH and run ./configure again
Makefile:503: recipe for target 'profile-opt' failed
make: *** [profile-opt] Error 1
The llvm-profdata tool exists but is only known as llvm-profdata-3.8. We should have the ./configure script figure this out. I'm not sure what the preferred "right" way to determine this is. Detecting that CC is a clang compiler and using its reported version number? noticing that clang is a symlink into an llvm-X.Y tree and using that number? none of these sound great. hopefully there is a better deterministic way to query clang for this. |
|
Date |
User |
Action |
Args |
2016-06-02 22:31:55 | gregory.p.smith | set | recipients:
+ gregory.p.smith |
2016-06-02 22:31:55 | gregory.p.smith | set | messageid: <1464906715.45.0.48477464544.issue27189@psf.upfronthosting.co.za> |
2016-06-02 22:31:55 | gregory.p.smith | link | issue27189 messages |
2016-06-02 22:31:55 | gregory.p.smith | create | |
|