Greg Clayton | c982c76 | 2010-07-09 20:39:50 +0000 | [diff] [blame] | 1 | ##===- 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 | |
| 10 | LLDB_LEVEL := ../.. |
| 11 | LIBRARYNAME := lldbCore |
| 12 | BUILD_ARCHIVE = 1 |
| 13 | |
Filipe Cabecinhas | 2f4ed2a | 2013-02-15 02:36:40 +0000 | [diff] [blame^] | 14 | include $(LLDB_LEVEL)/Makefile |
| 15 | |
Daniel Malea | 48b917b | 2012-12-10 21:05:57 +0000 | [diff] [blame] | 16 | # 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 Cabecinhas | 2f4ed2a | 2013-02-15 02:36:40 +0000 | [diff] [blame^] | 18 | # complain if we try to compile it with -fno-rtti. |
Daniel Malea | 48b917b | 2012-12-10 21:05:57 +0000 | [diff] [blame] | 19 | $(info shell basename CXX is $(shell basename $(CXX))) |
| 20 | ifeq (g++,$(shell basename $(CXX))) |
Filipe Cabecinhas | 2f4ed2a | 2013-02-15 02:36:40 +0000 | [diff] [blame^] | 21 | $(ObjDir)/cxa_demangle.o: Compile.CXX := $(filter-out -fno-rtti,$(Compile.CXX)) -frtti |
Daniel Malea | 48b917b | 2012-12-10 21:05:57 +0000 | [diff] [blame] | 22 | endif |
| 23 | |
Filipe Cabecinhas | 2f4ed2a | 2013-02-15 02:36:40 +0000 | [diff] [blame^] | 24 | ifeq (Darwin,$(shell uname -s)) |
| 25 | $(ObjDir)/cxa_demangle.o: Compile.CXX := $(filter-out -fno-rtti,$(Compile.CXX)) -frtti |
| 26 | endif |