[PATCH] D122862: gn build: Fix support for building the builtins for baremetal.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 31 20:41:32 PDT 2022


pcc created this revision.
pcc added a reviewer: thakis.
Herald added subscribers: abrachet, abidh, kristof.beyls.
Herald added a project: All.
pcc requested review of this revision.
Herald added a project: LLVM.

Our support for building for baremetal was conditional on a default
off arg and would have failed to build if you had somehow arranged
to pass the correct --target flag; presumably nobody noticed because
nobody was turning it on. A better approach is to model baremetal
as a separate "OS" called "baremetal" and build it in the same way
as we cross-compile for other targets. That's what this patch does.
I only hooked up the arm64 target but others can be added.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122862

Files:
  llvm/utils/gn/build/toolchain/BUILD.gn
  llvm/utils/gn/build/toolchain/target_flags.gni
  llvm/utils/gn/secondary/compiler-rt/BUILD.gn
  llvm/utils/gn/secondary/compiler-rt/lib/BUILD.gn
  llvm/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn
  llvm/utils/gn/secondary/compiler-rt/target.gni
  llvm/utils/gn/secondary/llvm/triples.gni

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122862.419611.patch
Type: text/x-patch
Size: 4909 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220401/ae8b7ba6/attachment.bin>


More information about the llvm-commits mailing list