[llvm-dev] (Thin)LTO llvm build

Carsten Mattner via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 4 10:15:03 PDT 2016


On Tue, Oct 4, 2016 at 2:22 AM, Xinliang David Li <xinliangli at gmail.com> wrote:
> For clang build, cmake flags:
>
>  -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=gold \
>  -DCMAKE_MODULE_LINKER_FLAGS=-fuse-ld=gold \
>  -DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=gold \

Thanks, this didn't break the cmake run.

I've been successfully using LDFLAGS, CXXFLAGS, CPPFLAGS, CFLAGS.
It works, but now I wonder if it's safer to pass those via a -DCMAKE_CXXFLAGS.
Any idea? If so, what are the LLVM CMake variables to set ldflags,
cxxflags, cppflags, cflags?


More information about the llvm-dev mailing list