Summary:
Add components back into calls to llvm-config,
which was accidentally removed in r258283.
Reviewers: pcc
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D16392
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258383
91177308-0d34-0410-b5e6-
96231b3b80d8
}
func llvmFlags() compilerFlags {
- ldflags := llvmConfig("--ldflags", "--libs", "--system-libs")
+ args := append([]string{"--ldflags", "--libs", "--system-libs"}, components...)
+ ldflags := llvmConfig(args...)
if runtime.GOOS != "darwin" {
// OS X doesn't like -rpath with cgo. See:
// https://code.google.com/p/go/issues/detail?id=7293