llvm.org GIT mirror llvm / 9c6305e
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258383 91177308-0d34-0410-b5e6-96231b3b80d8 Andrew Wilkins 3 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
8888 }
8989
9090 func llvmFlags() compilerFlags {
91 ldflags := llvmConfig("--ldflags", "--libs", "--system-libs")
91 args := append([]string{"--ldflags", "--libs", "--system-libs"}, components...)
92 ldflags := llvmConfig(args...)
9293 if runtime.GOOS != "darwin" {
9394 // OS X doesn't like -rpath with cgo. See:
9495 // https://code.google.com/p/go/issues/detail?id=7293