[cmake/multilib] Teach llgo to respect the LLVM_LIBDIR_SUFFIX variable for
authorChandler Carruth <chandlerc@gmail.com>
Mon, 29 Dec 2014 22:57:21 +0000 (22:57 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 29 Dec 2014 22:57:21 +0000 (22:57 +0000)
commita5ecd8a9f71b5a88e24db6877062efdac35e623d
treecab52d1a841c82393868786af232d497eb24da3a
parent4d5c7288cc98333484036922976f14ded14573de
[cmake/multilib] Teach llgo to respect the LLVM_LIBDIR_SUFFIX variable for
multilib build and installs.

Summary:
This requires introducing a generated header to encapsulate the
LLVM_LIBDIR_SUFFIX value from the build system and push it into the go
code. From there, I've adjusted the gllgo code to systematically use
this rather than a raw "lib". This requires some awkwardness as one of
the flags *must* be "lib"-relative for compatibility with how gccgo
works. For that flag, we use ".." to back up a directory and then go
into the proper lib directory.

Differential Revision: http://reviews.llvm.org/D6795

llvm-svn: 224964
llgo/CMakeLists.txt
llgo/cmd/gllgo/config.h.cmake [new file with mode: 0644]
llgo/cmd/gllgo/gllgo.go