summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-10-19 02:31:31 +0000
committerChris Bieneman <beanz@apple.com>2016-10-19 02:31:31 +0000
commit716ac7684c4c952b55b44115c752cd552e13adbd (patch)
tree8eb39bf9ef82758cf85ad34fe3a2d53694318fe3 /lldb/packages/Python/lldbsuite/test
parent95fc43143d74742b44d6361a16af3bf424471e79 (diff)
downloadbcm5719-llvm-716ac7684c4c952b55b44115c752cd552e13adbd.tar.gz
bcm5719-llvm-716ac7684c4c952b55b44115c752cd552e13adbd.zip
Trying to fix a few more missing LDFLAGS.
llvm-svn: 284564
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/make/Makefile.rules6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
index 68106cf1fb7..0451b23e23f 100644
--- a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
+++ b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
@@ -423,6 +423,9 @@ ifneq "$(strip $(ARCHIVE_CXX_SOURCES))" ""
ARCHIVE_OBJECTS +=$(strip $(ARCHIVE_CXX_SOURCES:.cpp=.o))
CXX = $(call cxx_compiler,$(CC))
LD = $(call cxx_linker,$(CC))
+ ifeq ($(findstring clang, $(cxx_linker)), clang)
+ LDFLAGS += --driver-mode=g++
+ endif
endif
#----------------------------------------------------------------------
@@ -440,6 +443,9 @@ ifneq "$(strip $(ARCHIVE_OBJCXX_SOURCES))" ""
ARCHIVE_OBJECTS +=$(strip $(ARCHIVE_OBJCXX_SOURCES:.mm=.o))
CXX = $(call cxx_compiler,$(CC))
LD = $(call cxx_linker,$(CC))
+ ifeq ($(findstring clang, $(cxx_linker)), clang)
+ LDFLAGS += --driver-mode=g++
+ endif
ifeq "$(findstring lobjc,$(LDFLAGS))" ""
LDFLAGS +=-lobjc
endif
OpenPOWER on IntegriCloud