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 | 95c1f5ba64e7ad505781235839b65a2a8f64a733 (patch) | |
tree | 76e529f26e03fee593475f86bd9c0c16d4eb1443 /Makefile.rules | |
parent | 868a30273872a656371dd7c308830b6a9dd33a30 (diff) | |
download | llvm-95c1f5ba64e7ad505781235839b65a2a8f64a733.tar.gz llvm-95c1f5ba64e7ad505781235839b65a2a8f64a733.tar.bz2 llvm-95c1f5ba64e7ad505781235839b65a2a8f64a733.tar.xz |
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 a1a1924a99..9787d5fe0b 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. |