[PATCH] D16392: llvm-go: call llvm-config with components
Andrew Wilkins via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 20 18:34:03 PST 2016
axw created this revision.
axw added a reviewer: pcc.
axw added a subscriber: llvm-commits.
Add components back into calls to llvm-config,
which was accidentally removed in r258283.
http://reviews.llvm.org/D16392
Files:
tools/llvm-go/llvm-go.go
Index: tools/llvm-go/llvm-go.go
===================================================================
--- tools/llvm-go/llvm-go.go
+++ tools/llvm-go/llvm-go.go
@@ -89,7 +89,8 @@
}
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16392.45481.patch
Type: text/x-patch
Size: 529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160121/3a14caa2/attachment.bin>
More information about the llvm-commits
mailing list