summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 21aa347)
raw | patch | inline | side by side (parent: 21aa347)
author | Chris Lattner <sabre@nondot.org> | |
Fri, 9 Apr 2010 20:51:47 +0000 (20:51 +0000) | ||
committer | Chris Lattner <sabre@nondot.org> | |
Fri, 9 Apr 2010 20:51:47 +0000 (20:51 +0000) |
variable TARGET_HAS_DYNAMIC_LIBS
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100896 91177308-0d34-0410-b5e6-96231b3b80d8
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100896 91177308-0d34-0410-b5e6-96231b3b80d8
Makefile.config.in | patch | blob | history | |
lib/Transforms/Makefile | patch | blob | history | |
runtime/Makefile | patch | blob | history |
diff --git a/Makefile.config.in b/Makefile.config.in
index 1b61f0908a8cefb8cc06bafd2e17ad3d5ff62d01..7c59e5f3f42ceee56d168fccd66af32bd2f542ac 100644 (file)
--- a/Makefile.config.in
+++ b/Makefile.config.in
CXX_INCLUDE_32BIT_DIR = @CXX_INCLUDE_32BIT_DIR@
CXX_INCLUDE_64BIT_DIR = @CXX_INCLUDE_64BIT_DIR@
+# TARGET_HAS_DYNAMIC_LIBS - This is set if the target supports dynamic linking
+# .dylib or .so files.
+ifeq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin MingW Minix))
+TARGET_HAS_DYNAMIC_LIBS := 1
+endif
+
# When ENABLE_LLVMC_DYNAMIC is enabled, LLVMC will link libCompilerDriver
# dynamically. This is needed to make dynamic plugins work on some targets
# (Windows).
index e527be25decb1f32cfa7b089eca8d1ceb06ef536..648d10f7b0bf32aa12bd28f6c7a9a9212f3d8247 100644 (file)
--- a/lib/Transforms/Makefile
+++ b/lib/Transforms/Makefile
include $(LEVEL)/Makefile.config
-# No support for plugins on windows targets
-ifeq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW Minix))
+# Some targets don't support plugins
+ifdef $(TARGET_HAS_DYNAMIC_LIBS)
PARALLEL_DIRS := $(filter-out Hello, $(PARALLEL_DIRS))
endif
diff --git a/runtime/Makefile b/runtime/Makefile
index d0e85d58264f6c9fb034565ac58bb7e781e8f030..741d87bc6525f26260a105ce2d0b173b34e87ac0 100644 (file)
--- a/runtime/Makefile
+++ b/runtime/Makefile
PARALLEL_DIRS := $(filter-out libprofile, $(PARALLEL_DIRS))
endif
-ifeq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin MingW Minix))
+ifdef $(TARGET_HAS_DYNAMIC_LIBS)
PARALLEL_DIRS := $(filter-out libprofile, $(PARALLEL_DIRS))
endif