Skip to content

Commit de79780

Browse files
committed
Run x86_64 tests in Picolibc
Signed-off-by: Kushal Pal <kushpal@qti.qualcomm.com>
1 parent 18a17ed commit de79780

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/picolibc-builder.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: nightly picolibc builder
22

33
on:
4-
# pull_request: {} # Uncomment only to test this WF file update.
4+
pull_request: {} # Uncomment only to test this WF file update.
55
schedule:
66
# 10:00 PM Central
77
- cron: '0 4 * * *'
@@ -21,6 +21,7 @@ jobs:
2121
llvm-target: Hexagon
2222
picolibc-default-config: "-Dc_link_args=-L$(clang -print-resource-dir)/lib/hexagon-unknown-none-elf"
2323
picolibc-no-tls: "-Dc_link_args=-L$(clang -print-resource-dir)/lib/hexagon-unknown-none-elf -Dthread-local-storage=false "
24+
eld-target: Hexagon
2425
- name: aarch64
2526
picolibc-name: aarch64
2627
triple: aarch64-none-elf
@@ -41,6 +42,12 @@ jobs:
4142
picolibc-no-tls: "-Dthread-local-storage=false"
4243
extra-c-flags: "-march=rv32imafdc -mabi=ilp32d"
4344
extra-cxx-flags: "-march=rv32imafdc -mabi=ilp32d"
45+
- name: x86_64
46+
triple: x86_64-none-eabi
47+
llvm-target: X86
48+
eld-target: x86_64
49+
picolibc-default-config: ""
50+
picolibc-no-tls: "-Dthread-local-storage=false"
4451

4552
steps:
4653
- name: Set up Clang 20
@@ -63,6 +70,7 @@ jobs:
6370
path: llvm-project/llvm/tools/eld
6471

6572
- name: Record pre-build entry
73+
if: github.event_name == 'schedule'
6674
run: |
6775
cd llvm-project/llvm/tools/eld
6876
git branch
@@ -92,7 +100,7 @@ jobs:
92100
-DCMAKE_CXX_COMPILER=`which clang++` \
93101
-DCMAKE_CXX_FLAGS="-stdlib=libc++" \
94102
-DLLVM_TARGETS_TO_BUILD=${{ matrix.arch.llvm-target }} \
95-
-DELD_TARGETS_TO_BUILD=${{ matrix.arch.llvm-target }} \
103+
-DELD_TARGETS_TO_BUILD=${{ matrix.arch.eld-target }} \
96104
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install-${{ matrix.arch.name }}-toolchain \
97105
-S ${{ github.workspace }}/llvm-project/llvm \
98106
-B ${{ github.workspace }}/build-${{ matrix.arch.name }}-toolchain/ \
@@ -129,8 +137,8 @@ jobs:
129137
-DCOMPILER_RT_BUILD_PROFILE=OFF \
130138
-DCMAKE_C_COMPILER_TARGET=${{ matrix.arch.triple }} \
131139
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON \
132-
-DCMAKE_C_FLAGS="--target=${{ matrix.arch.triple }} -ffreestanding ${{ matrix.arch.extra-c-flags }}" \
133-
-DCMAKE_CXX_FLAGS="--target=${{ matrix.arch.triple }} -ffreestanding ${{ matrix.arch.extra-cxx-flags }}" \
140+
-DCMAKE_C_FLAGS="--target=${{ matrix.arch.triple }} -ffreestanding -nostdlibinc ${{ matrix.arch.extra-c-flags }}" \
141+
-DCMAKE_CXX_FLAGS="--target=${{ matrix.arch.triple }} -nostdlibinc ${{ matrix.arch.extra-cxx-flags }}" \
134142
-DCMAKE_C_COMPILER_FORCED=ON \
135143
-DCMAKE_CXX_COMPILER_FORCED=ON \
136144
-DCMAKE_CROSSCOMPILING=ON \
@@ -231,6 +239,7 @@ jobs:
231239
retention-days: 60
232240

233241
- name: Update build entry
242+
if: github.event_name == 'schedule'
234243
run: |
235244
cd llvm-project/llvm/tools/eld
236245
git branch

0 commit comments

Comments
 (0)