Skip to content

Commit

Permalink
llvm-go: call llvm-config with components
Browse files Browse the repository at this point in the history
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
  • Loading branch information
axw committed Jan 21, 2016
1 parent c73f2d0 commit 9c6305e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/llvm-go/llvm-go.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c6305e

Please sign in to comment.