diff options
author | emaste <emaste@FreeBSD.org> | 2013-09-20 01:52:02 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2013-09-20 01:52:02 +0000 |
commit | 51ba585f88949f7d515cf6be9c32aa678838a67c (patch) | |
tree | 03c4639d8dd72b5865e528b3705c2061add52e92 /lib/clang/Makefile | |
parent | 07c75ee46c7f2c2fa93ef848a944b6c054d22168 (diff) | |
download | FreeBSD-src-51ba585f88949f7d515cf6be9c32aa678838a67c.zip FreeBSD-src-51ba585f88949f7d515cf6be9c32aa678838a67c.tar.gz |
Add LLDB bmake infrastructure
This connects LLDB to the build, but it is disabled by default. Add
WITH_LLDB= to src.conf to build it.
Note that LLDB requires a C++11 compiler so is disabled on platforms
using GCC.
Approved by: re (gjb)
Sponsored by: DARPA, AFRL
Diffstat (limited to 'lib/clang/Makefile')
-rw-r--r-- | lib/clang/Makefile | 56 |
1 files changed, 51 insertions, 5 deletions
diff --git a/lib/clang/Makefile b/lib/clang/Makefile index 6bc9552..3f30c96 100644 --- a/lib/clang/Makefile +++ b/lib/clang/Makefile @@ -3,17 +3,22 @@ .include <bsd.own.mk> .if !make(install) -.if !defined(EARLY_BUILD) && defined(MK_CLANG_FULL) && ${MK_CLANG_FULL} != "no" +.if !defined(EARLY_BUILD) +.if defined(MK_CLANG_FULL) && ${MK_CLANG_FULL} != "no" _libclangstaticanalyzer= \ libclangstaticanalyzercheckers \ libclangstaticanalyzercore \ libclangstaticanalyzerfrontend _libclangarcmigrate= \ libclangarcmigrate +.endif # MK_CLANG_FULL +.if (defined(MK_CLANG_FULL) && ${MK_CLANG_FULL} != "no") || \ + (defined(MK_LLDB) && ${MK_LLDB} != "no") _libclangrewriter= \ libclangrewritecore \ libclangrewritefrontend -.endif # !EARLY_BUILD && MK_CLANG_FULL +.endif # (MK_CLANG_FULL || MK_LLDB) +.endif # !EARLY_BUILD SUBDIR= libclanganalysis \ ${_libclangarcmigrate} \ @@ -82,14 +87,55 @@ SUBDIR= libclanganalysis \ libllvmx86utils .if ${MK_CLANG_EXTRAS} != "no" -SUBDIR+=libllvmdebuginfo \ - libllvmexecutionengine \ +SUBDIR+=libllvmdebuginfo +.endif # MK_CLANG_EXTRAS +.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no" +SUBDIR+=libllvmexecutionengine \ libllvminterpreter \ libllvmjit \ libllvmmcdisassembler \ libllvmmcjit \ libllvmruntimedyld -.endif # MK_CLANG_EXTRAS +.endif # MK_CLANG_EXTRAS | LLDB + +.if !defined(EARLY_BUILD) && ${MK_LLDB} != "no" +SUBDIR+=liblldb \ + \ + liblldbAPI \ + liblldbBreakpoint \ + liblldbCommands \ + liblldbCore \ + liblldbDataFormatters \ + liblldbExpression \ + liblldbHostCommon \ + liblldbHostFreeBSD \ + liblldbInterpreter \ + liblldbSymbol \ + liblldbTarget \ + liblldbUtility \ + \ + liblldbPluginABISysV_x86_64 \ + liblldbPluginCXXItaniumABI \ + liblldbPluginDisassemblerLLVM \ + liblldbPluginDynamicLoaderStatic \ + liblldbPluginDynamicLoaderPosixDYLD \ + liblldbPluginInstructionARM \ + liblldbPluginObjectContainerBSDArchive \ + liblldbPluginObjectFileELF \ + liblldbPluginPlatformFreeBSD \ + liblldbPluginPlatformGDB \ + liblldbPluginProcessElfCore \ + liblldbPluginProcessFreeBSD \ + liblldbPluginProcessGDBRemote \ + liblldbPluginProcessPOSIX \ + liblldbPluginProcessUtility \ + liblldbPluginSymbolFileDWARF \ + liblldbPluginSymbolFileSymtab \ + liblldbPluginSymbolVendorELF \ + liblldbPluginUnwindAssemblyInstEmulation \ + liblldbPluginUnwindAssemblyX86 +.endif # !EARLY_BUILD && MK_LLDB + .endif # !make(install) SUBDIR+= include |