[PATCH] D54345: Add initial scaffolding for the GN build.
Nico Weber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 9 12:31:20 PST 2018
thakis created this revision.
thakis added a reviewer: phosek.
Herald added subscribers: jfb, erik.pilkington, hiraditya.
See "GN build roundtable summary; adding GN build files to the repo" on llvm-dev and cfe-dev for discussion.
In particular, this build is completely unsupported. People adding new files to LLVM are not expected to update the GN build files, and reviewers are not supposed to request the gn build files to be updated.
This adds just enough to be able to build llvm/lib/Demangle. It requires using a monorepo.
This adds a few build config options you can set in args.gn (`gn args out/foo --list` for all):
- is_debug = true to enable debug builds (defaults to release)
- llvm_enable_assertions to toggle assertions (defaults to true)
- clang_base_path, if set an absolute path to a locally-built clang to be used as host compiler, e.g. `clang_base_path = getenv("HOME") + "/src/chrome/src/third_party/llvm-build/Release+Asserts"`
https://reviews.llvm.org/D54345
Files:
llvm/utils/gn/.gn
llvm/utils/gn/BUILD.gn
llvm/utils/gn/README.rst
llvm/utils/gn/build/BUILD.gn
llvm/utils/gn/build/BUILDCONFIG.gn
llvm/utils/gn/build/buildflags.gni
llvm/utils/gn/build/enable_threads.gni
llvm/utils/gn/build/mac_sdk.gni
llvm/utils/gn/build/toolchain/BUILD.gn
llvm/utils/gn/build/toolchain/compiler.gni
llvm/utils/gn/tree/llvm/lib/Demangle/BUILD.gn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54345.173414.patch
Type: text/x-patch
Size: 21617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181109/422febf2/attachment.bin>
More information about the llvm-commits
mailing list