Skip to content

crossdev: query compiler for supported llvm targets#47

Open
peppergrayxyz wants to merge 2 commits into
gentoo:masterfrom
peppergrayxyz:llvm_targets_check
Open

crossdev: query compiler for supported llvm targets#47
peppergrayxyz wants to merge 2 commits into
gentoo:masterfrom
peppergrayxyz:llvm_targets_check

Conversation

@peppergrayxyz

Copy link
Copy Markdown

for llvm targets, crossdev maps target triples to use flags to check if the toolchain supports the target. This needs updating when targets change, which may lead to bugs.

Instead query clang to get a list of supported cpus for this target, do determine the toolchain status:

  • 0: ok
  • 1: target not available or installed
  • 127: llvm not installed

Bugs: https://bugs.gentoo.org/978823
Obsoletes: #46

This PR more of an enhancement than just a bug fix and a maintainer should decide if this route is desirable.

for llvm targets, crossdev maps target triples to use flags to
check if the toolchain supports the target. This needs updating
when targets change, which may lead to bugs.

Instead query clang to get a list of supported cpus for this target,
do determine the toolchain status:
- 0: ok
- 1: target not available or installed
- 127: llvm not installed

Bugs: https://bugs.gentoo.org/978823
Signed-off-by: Pepper Gray <hello@peppergray.xyz>

@floppym floppym left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this idea.

@alfredfo Any concerns?

Comment thread crossdev Outdated
Co-authored-by: Mike Gilbert <floppymaster@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants