[all-commits] [llvm/llvm-project] b02b9b: gn build: Fix support for building the builtins fo...

pcc via All-commits all-commits at lists.llvm.org
Wed Apr 6 11:01:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b02b9b3dacc8a4afa96e8990f2dda8bc9b959f78
      https://github.com/llvm/llvm-project/commit/b02b9b3dacc8a4afa96e8990f2dda8bc9b959f78
  Author: Peter Collingbourne <peter at pcc.me.uk>
  Date:   2022-04-06 (Wed, 06 Apr 2022)

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

  Log Message:
  -----------
  gn build: Fix support for building the builtins for baremetal.

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.

Differential Revision: https://reviews.llvm.org/D122862




More information about the All-commits mailing list