[llvm-dev] (Thin)LTO llvm build (original) (raw)

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:

_-DCMAKEEXELINKERFLAGS=-fuse-ld=gold _ _-DCMAKEMODULELINKERFLAGS=-fuse-ld=gold _ _-DCMAKESHAREDLINKERFLAGS=-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