[llvm] r258383 - llvm-go: call llvm-config with components
Andrew Wilkins via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 20 18:33:39 PST 2016
Author: axw
Date: Wed Jan 20 20:33:39 2016
New Revision: 258383
URL: http://llvm.org/viewvc/llvm-project?rev=258383&view=rev
Log:
llvm-go: call llvm-config with components
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
Modified:
llvm/trunk/tools/llvm-go/llvm-go.go
Modified: llvm/trunk/tools/llvm-go/llvm-go.go
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-go/llvm-go.go?rev=258383&r1=258382&r2=258383&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-go/llvm-go.go (original)
+++ llvm/trunk/tools/llvm-go/llvm-go.go Wed Jan 20 20:33:39 2016
@@ -89,7 +89,8 @@ func llvmConfig(args ...string) string {
}
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
More information about the llvm-commits
mailing list