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
set(LLVM_LINK_COMPONENTS support)
+add_definitions(-DLLI_BUILDING_CHILD)
add_llvm_executable(lli-child-target
ChildTarget.cpp
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
using namespace llvm;
+#ifndef LLI_BUILDING_CHILD
+
// Static methods
RemoteTarget *RemoteTarget::createRemoteTarget() {
return new RemoteTarget;
#endif
}
+#endif
////////////////////////////////////////////////////////////////////////////////
// Simulated remote execution