Re-landing a cleaned up implementation of r284550
authorChris Bieneman <beanz@apple.com>
Thu, 20 Oct 2016 18:01:19 +0000 (18:01 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 20 Oct 2016 18:01:19 +0000 (18:01 +0000)
commit53a7844383faecb8c3e0e7133bdfa8fdc0425f93
tree168fecda34ee146b5074974ff9dcc8ba3a9e4b3f
parent365be4f95ccf9ab1cf217609678159acbe6b01a5
Re-landing a cleaned up implementation of r284550

This time it should actually work. The previous implementaiton was not
getting the linker or compiler flag set correctly in all the right
situations. By moving the check down and basing it of whether or not CXX
is set I we can have the logic to add the flags exist only once for the
linker and once for the compiler instead of duplicating it.

llvm-svn: 284756
lldb/packages/Python/lldbsuite/test/make/Makefile.rules