blob: 78b7e3d5dde51732436926cd76a6978337349cec [file] [log] [blame]
Greg Claytonc982c762010-07-09 20:39:50 +00001##===- source/Core/Makefile --------------------------------*- Makefile -*-===##
2#
3# The LLVM Compiler Infrastructure
4#
5# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
7#
8##===----------------------------------------------------------------------===##
9
10LLDB_LEVEL := ../..
11LIBRARYNAME := lldbCore
12BUILD_ARCHIVE = 1
13
Filipe Cabecinhas2f4ed2a2013-02-15 02:36:40 +000014include $(LLDB_LEVEL)/Makefile
15
Daniel Malea48b917b2012-12-10 21:05:57 +000016# Enable RTTI on GCC builds because one source file in this directory
17# (cxa_demangle.cpp) uses dynamic_cast<> and GCC (at least 4.6 and 4.7)
Filipe Cabecinhas2f4ed2a2013-02-15 02:36:40 +000018# complain if we try to compile it with -fno-rtti.
Daniel Malea48b917b2012-12-10 21:05:57 +000019$(info shell basename CXX is $(shell basename $(CXX)))
20ifeq (g++,$(shell basename $(CXX)))
Filipe Cabecinhas2f4ed2a2013-02-15 02:36:40 +000021$(ObjDir)/cxa_demangle.o: Compile.CXX := $(filter-out -fno-rtti,$(Compile.CXX)) -frtti
Daniel Malea48b917b2012-12-10 21:05:57 +000022endif
23
Filipe Cabecinhas2f4ed2a2013-02-15 02:36:40 +000024ifeq (Darwin,$(shell uname -s))
25$(ObjDir)/cxa_demangle.o: Compile.CXX := $(filter-out -fno-rtti,$(Compile.CXX)) -frtti
26endif