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 | 72f3f7eb564fdb910a9068d47a00ddc70ba6f61d (patch) | |
| tree | a1de44d525ed8542e7132b0bfc1f22d56915e1e7 /llvm/lib/CompilerDriver/Makefile | |
| parent | 3a09c8bd5eae1d286119b0d08c1da8eb1ed40e79 (diff) | |
| download | bcm5719-llvm-72f3f7eb564fdb910a9068d47a00ddc70ba6f61d.tar.gz bcm5719-llvm-72f3f7eb564fdb910a9068d47a00ddc70ba6f61d.zip | |
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.
llvm-svn: 74417
Diffstat (limited to 'llvm/lib/CompilerDriver/Makefile')
| -rw-r--r-- | llvm/lib/CompilerDriver/Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/llvm/lib/CompilerDriver/Makefile b/llvm/lib/CompilerDriver/Makefile index e5bf3e10a79..bbef2e34a14 100644 --- a/llvm/lib/CompilerDriver/Makefile +++ b/llvm/lib/CompilerDriver/Makefile @@ -12,8 +12,22 @@ LEVEL = ../.. # We don't want this library to appear in `llvm-config --libs` output, so its # name doesn't start with "LLVM". -LIBRARYNAME = CompilerDriver -LINK_COMPONENTS = support system +LIBRARYNAME = libCompilerDriver +LLVMLIBS = LLVMSupport.a LLVMSystem.a +LOADABLE_MODULE := 1 REQUIRES_EH := 1 include $(LEVEL)/Makefile.common + +FullLibName = $(LIBRARYNAME)$(SHLIBEXT) + +# Copy the library to the bin dir so that llvmc can find it. +all-local:: + $(Echo) Copying $(BuildMode) Shared Library $(FullLibName) \ + to $(ToolDir) + -$(Verb) $(CP) $(LibDir)/$(FullLibName) $(ToolDir)/ + +clean-local:: + $(Echo) Removing $(BuildMode) Shared Library $(FullLibName) \ + from $(ToolDir) + -$(Verb) $(RM) -f $(ToolDir)/$(FullLibName) |

