Skip to content

Commit

Permalink
Allow LLD to process bitcode for SBF (#111)
Browse files Browse the repository at this point in the history
* Allow LLD to process bitcode for SBF

* Enable lld in CI
  • Loading branch information
LucasSte authored Nov 19, 2024
1 parent 646ec14 commit 26ccb0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/lld-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ on:
- '.github/workflows/llvm-project-tests.yml'
- '!llvm/**'
pull_request:
ignore-forks: true
branches:
- 'release/**'
# ignore-forks: true
# branches:
# - 'release/**'
paths:
- 'lld/**'
- '.github/workflows/lld-tests.yml'
Expand All @@ -32,7 +32,7 @@ concurrency:

jobs:
check_lld:
if: github.repository_owner == 'llvm'
# if: github.repository_owner == 'llvm'
name: Test lld
uses: ./.github/workflows/llvm-project-tests.yml
with:
Expand Down
2 changes: 2 additions & 0 deletions lld/ELF/InputFiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1620,6 +1620,8 @@ static uint16_t getBitcodeMachineKind(StringRef path, const Triple &t) {
return t.isOSIAMCU() ? EM_IAMCU : EM_386;
case Triple::x86_64:
return EM_X86_64;
case Triple::sbf:
return EM_SBF;
default:
error(path + ": could not infer e_machine from bitcode target triple " +
t.str());
Expand Down

0 comments on commit 26ccb0c

Please sign in to comment.