From: Alp Toker Date: Thu, 23 Jan 2014 11:26:37 +0000 (+0000) Subject: Interim build fix for Makefiles X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=1f0d177335eeaf26b4b3e006b7866141e9951254;p=oota-llvm.git Interim build fix for Makefiles Looks like some parts still need detangling. Let's see if this holds for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199885 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/lli/ChildTarget/CMakeLists.txt b/tools/lli/ChildTarget/CMakeLists.txt index 6191fd60166..50f114d9561 100644 --- a/tools/lli/ChildTarget/CMakeLists.txt +++ b/tools/lli/ChildTarget/CMakeLists.txt @@ -1,4 +1,5 @@ set(LLVM_LINK_COMPONENTS support) +add_definitions(-DLLI_BUILDING_CHILD) add_llvm_executable(lli-child-target ChildTarget.cpp diff --git a/tools/lli/ChildTarget/Makefile b/tools/lli/ChildTarget/Makefile index eff49c9f1cf..35a354156c3 100644 --- a/tools/lli/ChildTarget/Makefile +++ b/tools/lli/ChildTarget/Makefile @@ -12,8 +12,10 @@ TOOLNAME := lli-child-target include $(LEVEL)/Makefile.config -LINK_COMPONENTS := +LINK_COMPONENTS := support -SOURCES += ../RemoteTarget.cpp +CXXFLAGS += -DLLI_BUILDING_CHILD + +SOURCES := ChildTarget.cpp ../RemoteTarget.cpp include $(LLVM_SRC_ROOT)/Makefile.rules diff --git a/tools/lli/RemoteTarget.cpp b/tools/lli/RemoteTarget.cpp index f07534d161a..c3195e2154c 100644 --- a/tools/lli/RemoteTarget.cpp +++ b/tools/lli/RemoteTarget.cpp @@ -22,6 +22,8 @@ using namespace llvm; +#ifndef LLI_BUILDING_CHILD + // Static methods RemoteTarget *RemoteTarget::createRemoteTarget() { return new RemoteTarget; @@ -43,6 +45,7 @@ bool RemoteTarget::hostSupportsExternalRemoteTarget() { #endif } +#endif //////////////////////////////////////////////////////////////////////////////// // Simulated remote execution