From aa5c86aa52cce51226dfe47112dcfb0c4ae2e10d Mon Sep 17 00:00:00 2001 From: Lucas Date: Tue, 19 Nov 2024 14:10:16 -0300 Subject: [PATCH 1/2] Allow LLD to process bitcode for SBF --- lld/ELF/InputFiles.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 6c7ef27cbd49423..2f57c3b999f6670 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -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()); From b6f7a3d5a8109ce52b7898fef696b10c74a65413 Mon Sep 17 00:00:00 2001 From: Lucas Date: Tue, 19 Nov 2024 14:37:43 -0300 Subject: [PATCH 2/2] Enable lld in CI --- .github/workflows/lld-tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lld-tests.yml b/.github/workflows/lld-tests.yml index e806c77df28724c..dbb7af31c57dbfd 100644 --- a/.github/workflows/lld-tests.yml +++ b/.github/workflows/lld-tests.yml @@ -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' @@ -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: