[all-commits] [llvm/llvm-project] b221c3: [RISCV] Allow YAML file to control multilib select...
R via All-commits
all-commits at lists.llvm.org
Fri Aug 16 09:14:37 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b221c37082707e35b492baa9ae8045c56b3ced0b
https://github.com/llvm/llvm-project/commit/b221c37082707e35b492baa9ae8045c56b3ced0b
Author: R <rqou at berkeley.edu>
Date: 2024-08-16 (Fri, 16 Aug 2024)
Changed paths:
M clang/lib/Driver/ToolChain.cpp
M clang/lib/Driver/ToolChains/BareMetal.cpp
M clang/test/Driver/print-multi-selection-flags.c
Log Message:
-----------
[RISCV] Allow YAML file to control multilib selection (#98856)
This changes the bare-metal driver logic such that it _always_ tries
multilib.yaml if it exists, and it falls back to the hardwired/default
RISC-V multilib selection only if a multilib.yaml doesn't exist. In
contrast, the current behavior is that RISC-V can never use
multilib.yaml, but other targets will try it if it exists.
The flags `-march=` and `-mabi=` are exposed for multilib.yaml to match
on. There is no attempt to help YAML file creators to duplicate the
existing hard-wired multilib reuse logic -- they will have to implement
it using `Mappings`.
This should be backwards-compatible with existing sysroots, as
multilib.yaml was previously never used for RISC-V, and the behavior
doesn't change after this PR if the file doesn't exist.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list