Interim build fix for Makefiles
authorAlp Toker <alp@nuanti.com>
Thu, 23 Jan 2014 11:26:37 +0000 (11:26 +0000)
committerAlp Toker <alp@nuanti.com>
Thu, 23 Jan 2014 11:26:37 +0000 (11:26 +0000)
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

tools/lli/ChildTarget/CMakeLists.txt
tools/lli/ChildTarget/Makefile
tools/lli/RemoteTarget.cpp

index 6191fd601668fa212258bfee73743a1977034d11..50f114d9561c6fb25c0b39d77236044fbccc4244 100644 (file)
@@ -1,4 +1,5 @@
 set(LLVM_LINK_COMPONENTS support)
+add_definitions(-DLLI_BUILDING_CHILD)
 
 add_llvm_executable(lli-child-target
   ChildTarget.cpp
index eff49c9f1cfe2193fd5402992049b532a19c8110..35a354156c307e2e7893f7b655d7cb006e717c47 100644 (file)
@@ -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
index f07534d161a33c40eb71b0f3922a119421277034..c3195e2154c17dcf250863eab478b722d295667a 100644 (file)
@@ -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