2010-07-10 04:39:50 +08:00
|
|
|
##===- source/Core/Makefile --------------------------------*- Makefile -*-===##
|
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file is distributed under the University of Illinois Open Source
|
|
|
|
# License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
|
|
|
|
LLDB_LEVEL := ../..
|
|
|
|
LIBRARYNAME := lldbCore
|
|
|
|
BUILD_ARCHIVE = 1
|
|
|
|
|
2013-02-15 10:36:40 +08:00
|
|
|
include $(LLDB_LEVEL)/Makefile
|
|
|
|
|
2012-12-11 05:05:57 +08:00
|
|
|
# Enable RTTI on GCC builds because one source file in this directory
|
|
|
|
# (cxa_demangle.cpp) uses dynamic_cast<> and GCC (at least 4.6 and 4.7)
|
2013-02-15 10:36:40 +08:00
|
|
|
# complain if we try to compile it with -fno-rtti.
|
2012-12-11 05:05:57 +08:00
|
|
|
$(info shell basename CXX is $(shell basename $(CXX)))
|
2013-05-18 04:56:55 +08:00
|
|
|
ifeq (g++,$(shell basename $(CXX) | colrm 4))
|
2013-02-15 10:36:40 +08:00
|
|
|
$(ObjDir)/cxa_demangle.o: Compile.CXX := $(filter-out -fno-rtti,$(Compile.CXX)) -frtti
|
2012-12-11 05:05:57 +08:00
|
|
|
endif
|
|
|
|
|
2013-02-15 10:36:40 +08:00
|
|
|
ifeq (Darwin,$(shell uname -s))
|
|
|
|
$(ObjDir)/cxa_demangle.o: Compile.CXX := $(filter-out -fno-rtti,$(Compile.CXX)) -frtti
|
|
|
|
endif
|