mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-26 16:05:54 +00:00
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
This commit is contained in:
parent
c73f2d0de4
commit
9c6305e216
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user