llvm.org GIT mirror llvm / e3a39d4
suck the propagating "has dynamic libs" check into a single makefile variable TARGET_HAS_DYNAMIC_LIBS git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100896 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 9 years ago
3 changed file(s) with 9 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
320320 CXX_INCLUDE_32BIT_DIR = @CXX_INCLUDE_32BIT_DIR@
321321 CXX_INCLUDE_64BIT_DIR = @CXX_INCLUDE_64BIT_DIR@
322322
323 # TARGET_HAS_DYNAMIC_LIBS - This is set if the target supports dynamic linking
324 # .dylib or .so files.
325 ifeq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin MingW Minix))
326 TARGET_HAS_DYNAMIC_LIBS := 1
327 endif
328
323329 # When ENABLE_LLVMC_DYNAMIC is enabled, LLVMC will link libCompilerDriver
324330 # dynamically. This is needed to make dynamic plugins work on some targets
325331 # (Windows).
1111
1212 include $(LEVEL)/Makefile.config
1313
14 # No support for plugins on windows targets
15 ifeq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW Minix))
14 # Some targets don't support plugins
15 ifdef $(TARGET_HAS_DYNAMIC_LIBS)
1616 PARALLEL_DIRS := $(filter-out Hello, $(PARALLEL_DIRS))
1717 endif
1818
1919 PARALLEL_DIRS := $(filter-out libprofile, $(PARALLEL_DIRS))
2020 endif
2121
22 ifeq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin MingW Minix))
22 ifdef $(TARGET_HAS_DYNAMIC_LIBS)
2323 PARALLEL_DIRS := $(filter-out libprofile, $(PARALLEL_DIRS))
2424 endif
2525