[PATCH] D19742: [CMake] Support platform building builtins without a full toolchain
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 29 13:34:02 PDT 2016
beanz created this revision.
beanz added reviewers: samsonov, iains, jroelofs.
beanz added a subscriber: llvm-commits.
Herald added subscribers: emaste, srhines, danalbert, tberghammer, aemerson.
This patch adds support for building lib/builtins without a fully functioning toolchain. It allows you to bootstrap a cross-compiler, which previously couldn't be done with CMake.
This patch contains the following specific changes:
* Split builtin-specific code out of config-ix.cmake into builtin-config-ix.cmake
* Split some common CMake functionality needed by both builtins and sanitizers into base-config-ix.cmake
* Made lib/builtins/CMakeLists.txt able to be a top-level CMake configuration
I have tested this on Darwin targeting embedded Darwin, and on FreeBSD x86_64 targeting FreeBSD AArch64.
This patch depends on http://reviews.llvm.org/D19692, and is the last part of http://reviews.llvm.org/D16653.
http://reviews.llvm.org/D19742
Files:
CMakeLists.txt
cmake/base-config-ix.cmake
cmake/builtin-config-ix.cmake
cmake/config-ix.cmake
lib/builtins/CMakeLists.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19742.55657.patch
Type: text/x-patch
Size: 30287 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160429/8ea918c9/attachment.bin>
More information about the llvm-commits
mailing list