diff options
| -rw-r--r-- | lldb/lib/Makefile | 2 | ||||
| -rw-r--r-- | lldb/source/Core/Makefile | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/lib/Makefile b/lldb/lib/Makefile index 7e76b52402e..e6f21821916 100644 --- a/lldb/lib/Makefile +++ b/lldb/lib/Makefile @@ -71,7 +71,7 @@ USEDLIBS = lldbAPI.a \ # Because GCC requires RTTI enabled for lldbCore (see source/Core/Makefile) it is # necessary to also link the clang rewriter libraries so vtable references can # be resolved correctly, if we are building with GCC. -ifeq (g++,$(shell basename $(CXX))) +ifeq (g++,$(shell basename $(CXX) | colrm 4)) USEDLIBS += clangRewriteCore.a \ clangRewriteFrontend.a endif diff --git a/lldb/source/Core/Makefile b/lldb/source/Core/Makefile index 78b7e3d5dde..d52443bd0f0 100644 --- a/lldb/source/Core/Makefile +++ b/lldb/source/Core/Makefile @@ -17,7 +17,7 @@ include $(LLDB_LEVEL)/Makefile # (cxa_demangle.cpp) uses dynamic_cast<> and GCC (at least 4.6 and 4.7) # complain if we try to compile it with -fno-rtti. $(info shell basename CXX is $(shell basename $(CXX))) -ifeq (g++,$(shell basename $(CXX))) +ifeq (g++,$(shell basename $(CXX) | colrm 4)) $(ObjDir)/cxa_demangle.o: Compile.CXX := $(filter-out -fno-rtti,$(Compile.CXX)) -frtti endif |

