gn build: Add support for building lldb-server on Android.The cross-compiled lldb-server targets are added to the lldb deps ifAndroid cross compilation is enabled.Differential Revision: https://
gn build: Add support for building lldb-server on Android.The cross-compiled lldb-server targets are added to the lldb deps ifAndroid cross compilation is enabled.Differential Revision: https://reviews.llvm.org/D109464
show more ...
[gn build] make WindowsManifestMerger.cpp build fine with sysrootThis already works in the cmake build.Differential Revision: https://reviews.llvm.org/D96889
gn build: Stop passing -DLLVM_LIBXML2_ENABLED to some targetsThis is a remnant from before the gn build had a working config.h.Defining LLVM_LIBXML2_ENABLED only for targets that depend on build/
gn build: Stop passing -DLLVM_LIBXML2_ENABLED to some targetsThis is a remnant from before the gn build had a working config.h.Defining LLVM_LIBXML2_ENABLED only for targets that depend on build/libs/xml isnice in that only some of the codebase needs to be rebuilt whenllvm_enable_libxml2 changes -- but config.h already defines it and defining itthere and then redundantly a second time for some targets is worse than havingit just in config.h.No behavior change.Differential Revision: https://reviews.llvm.org/D56908llvm-svn: 351758
[gn build] Add all non-test build files for lldVersion.inc.in processing has a potentially interesting part which I've puntedon for now (LLD_REVISION and LLD_REPOSITORY are set to empty strings fo
[gn build] Add all non-test build files for lldVersion.inc.in processing has a potentially interesting part which I've puntedon for now (LLD_REVISION and LLD_REPOSITORY are set to empty strings for now).lld now builds in the gn build. But no symlinks to it are created yet, so itcan't be meaningfully run yet.Differential Revision: https://reviews.llvm.org/D55593llvm-svn: 348945
[gn build] Create abi-breaking.h, config.h, llvm-config.h, and add a build file for llvm/lib/Support.The comments at the top ofllvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn andllvm/ut
[gn build] Create abi-breaking.h, config.h, llvm-config.h, and add a build file for llvm/lib/Support.The comments at the top ofllvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn andllvm/utils/gn/build/write_cmake_config.py should explain the main bitshappening in this patch. The main parts here are that these headers aregenerated at build time, not gn time, and that currently they don't do anyactual feature checks but just hardcode most things based on the current OS,which seems to work well enough. If this stops being enough, the feature checksshould each be their own action writing the result to somewhere, and the configwrite step should depend on those checks (so that they can run in parallel andas part of the build) -- utils/llvm/gn/README.rst already has some more wordson that in "Philosophy".(write_cmake_config.py is also going to be used to write clang'sclang/include/clang/Config/config.h)This also adds a few files for linking to system libraries in a consistent wayif needed in llvm/utils/gn/build/libs (and moves pthread to that model).0I'm also adding llvm/utils/gn/secondary/llvm/lib/Target/targets.gni in thispatch because $native_arch is needed for writing llvm-config.h -- the rest ofit will be used later, when the build files for llvm/lib/Target get added. Thatfile describes how to select which archs to build.As a demo, also add a build file for llvm-undname and make it the default buildtarget (it depends on everything that can currently be built).Differential Revision: https://reviews.llvm.org/D54678llvm-svn: 347636