HomePhabricator

Add initial support for multilibs in Baremetal toolchain.

Authored by abidh on Dec 14 2020, 11:11 AM.

Description

Add initial support for multilibs in Baremetal toolchain.

This patch add support of riscv multilibs in the Baremetal toolchain. It is
a bit different to what is done in GNU.cpp as we are not iterating a
GNU sysroot to find the multilibs. This is intended for an llvm only
toolchain. We are not checking for the presence of any runtime bits to
enable a specific multilib.

I have structured the patch so that other targets for which
there is no multilibs support yet in Baremetal.cpp (e.g. arm-none-eabi)
will not be affected. Patch also allows some multilibs reuse.

Long term, I would like to go in the direction of data-driven specification of
multilib directories and flags.

Reviewed By: jroelofs

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

Details

Committed
abidhDec 14 2020, 12:49 PM
Reviewer
jroelofs
Differential Revision
D93138: Add initial support for multilibs in Baremetal toolchain.
Parents
rGd50d7c37a159: [MBP] Prevent rotating a chain contains entry block
Branches
Unknown
Tags
Unknown