[PATCH] [lld] Revive standalone CMake build

Greg Fitzgerald garious at gmail.com
Fri Feb 13 14:17:16 PST 2015


Hi Bigcheese, nicholas, ruiu, shankar.easwaran,

A little while back we boot the standalone CMake build because it was broken, overly-complex and we found that nobody was really using it.  I'd like to bring it back because it makes working with the sanitizers especially fast and easy.  Some sanitizers, such as ASan, don't require dependencies to be instrumented.  By leaving the LLVM libraries uninstrumented and optimized, we can build just lld with instrumentation and debug symbols, and get a blazing fast sanitizer build.

This patch reintroduces the standalone build in a cleaner way than before.  The code to support the standalone build is itself standalone, nicely tucked under one conditional.  It's purpose is to put the build into the same context as if the LLVM build included it.  This patch also adds a config file for the one #define lld depends on, so that we don't have to reach into LLVM's private build directory for its config.h.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D7625

Files:
  CMakeLists.txt
  cmake/config-ix.cmake
  include/lld/Config/config.h.cmake
  lib/ReaderWriter/ELF/ELFLinkingContext.cpp
  lib/ReaderWriter/MachO/MachOLinkingContext.cpp
  test/lit.cfg

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7625.19929.patch
Type: text/x-patch
Size: 5652 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150213/f2f08814/attachment.bin>


More information about the llvm-commits mailing list