diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-06-29 03:09:15 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-06-29 03:09:15 +0000 |
commit | bfd255c0717ec4b7fcefa93ece7a3a190063a441 (patch) | |
tree | 76e529f26e03fee593475f86bd9c0c16d4eb1443 /Makefile.rules | |
parent | b2662e4d8bc83f62cef73e218bf4fc5e1bddaf92 (diff) | |
download | external_llvm-bfd255c0717ec4b7fcefa93ece7a3a190063a441.zip external_llvm-bfd255c0717ec4b7fcefa93ece7a3a190063a441.tar.gz external_llvm-bfd255c0717ec4b7fcefa93ece7a3a190063a441.tar.bz2 |
Make dynamic LLVMC plugins work on Windows (finally!).
Implemented by making lib/CompilerDriver a shared library that holds all the
global static data (CommandLine options, plugin registry) that we unfortunately
have to live with.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74417 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules index a1a1924..9787d5f 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -200,6 +200,7 @@ ifdef LLVMC_PLUGIN LIBRARYNAME := $(patsubst %,plugin_llvmc_%,$(LLVMC_PLUGIN)) CPP.Flags += -DLLVMC_PLUGIN_NAME=$(LLVMC_PLUGIN) REQUIRES_EH := 1 +LD.Flags += -lCompilerDriver # Build a dynamic library if the user runs `make` directly from the plugin # directory. @@ -217,9 +218,8 @@ endif # LLVMC_PLUGIN ifdef LLVMC_BASED_DRIVER TOOLNAME = $(LLVMC_BASED_DRIVER) -LLVMLIBS = CompilerDriver.a -LINK_COMPONENTS = support system REQUIRES_EH := 1 +LD.Flags += -lCompilerDriver # Preprocessor magic that generates references to static variables in built-in # plugins. |