Displaying 3 results from an estimated 3 matches for "dllvm_build_instru".
2019 Sep 03
2
Struggling with a PGO build of clang -- llvm-profdata was built without zlib support?
...9;clang;compiler-rt' \
-DLLVM_TARGETS_TO_BUILD=X86 \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_CXX_COMPILER=/path/to/release_build/bin/clang++ \
-DCMAKE_C_COMPILER=/path/to/release_build/bin/clang \
-DLLVM_USE_LINKER=/path/to/release_build/bin/ld.lld \
-DLLVM_CCACHE_BUILD=ON \
-DLLVM_BUILD_INSTRUMENTED=IR \
-DLLVM_BUILD_RUNTIME=No \
-DLLVM_ENABLE_ZLIB=1 \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_LTO=Thin \
-DCMAKE_RANLIB=/path/to/release_build/bin/llvm-ranlib \
-DCMAKE_AR=/path/to/release_build/bin/llvm-ar
I tried this without specifying zlib being enabled, without thinlto,
e...
2019 Sep 03
2
Struggling with a PGO build of clang -- llvm-profdata was built without zlib support?
...86 \
>> -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
>> -DCMAKE_CXX_COMPILER=/path/to/release_build/bin/clang++ \
>> -DCMAKE_C_COMPILER=/path/to/release_build/bin/clang \
>> -DLLVM_USE_LINKER=/path/to/release_build/bin/ld.lld \
>> -DLLVM_CCACHE_BUILD=ON \
>> -DLLVM_BUILD_INSTRUMENTED=IR \
>> -DLLVM_BUILD_RUNTIME=No \
>> -DLLVM_ENABLE_ZLIB=1 \
>> -DCMAKE_BUILD_TYPE=Release \
>> -DLLVM_ENABLE_LTO=Thin \
>> -DCMAKE_RANLIB=/path/to/release_build/bin/llvm-ranlib \
>> -DCMAKE_AR=/path/to/release_build/bin/llvm-ar
>>
>>...
2019 Jan 23
2
Windows/Clang build instrumented/PGO
...roblems.
I bootstrap the build by downloading the 7.0.1 binaries from llvm.org, then
pass clang-cl as the compiler and lld-link as the linker. I have Visual
Studio 2015 CE installed as well and run all the commands under a cmd that
has the right vcvars set.
To build the instrumented build I pass -DLLVM_BUILD_INSTRUMENTED=ON, I
started with passing -DLLVM_BUILD_INSTRUMENTED=IR but that doesn't build
because clang-cl doesn't understand the flags passed then. Instrumeted=ON
makes it build but it fails to link ( see build log at the end of the email
).
Has anyone managed to build a PGO version of clang o...