|
1 | 1 | name: nightly picolibc builder |
2 | 2 |
|
3 | 3 | on: |
4 | | - # pull_request: {} # Uncomment only to test this WF file update. |
| 4 | + pull_request: {} # Uncomment only to test this WF file update. |
5 | 5 | schedule: |
6 | 6 | # 10:00 PM Central |
7 | 7 | - cron: '0 4 * * *' |
|
21 | 21 | llvm-target: Hexagon |
22 | 22 | picolibc-default-config: "-Dc_link_args=-L$(clang -print-resource-dir)/lib/hexagon-unknown-none-elf" |
23 | 23 | picolibc-no-tls: "-Dc_link_args=-L$(clang -print-resource-dir)/lib/hexagon-unknown-none-elf -Dthread-local-storage=false " |
| 24 | + eld-target: Hexagon |
24 | 25 | - name: aarch64 |
25 | 26 | picolibc-name: aarch64 |
26 | 27 | triple: aarch64-none-elf |
|
41 | 42 | picolibc-no-tls: "-Dthread-local-storage=false" |
42 | 43 | extra-c-flags: "-march=rv32imafdc -mabi=ilp32d" |
43 | 44 | 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" |
44 | 51 |
|
45 | 52 | steps: |
46 | 53 | - name: Set up Clang 20 |
|
63 | 70 | path: llvm-project/llvm/tools/eld |
64 | 71 |
|
65 | 72 | - name: Record pre-build entry |
| 73 | + if: github.event_name == 'schedule' |
66 | 74 | run: | |
67 | 75 | cd llvm-project/llvm/tools/eld |
68 | 76 | git branch |
|
92 | 100 | -DCMAKE_CXX_COMPILER=`which clang++` \ |
93 | 101 | -DCMAKE_CXX_FLAGS="-stdlib=libc++" \ |
94 | 102 | -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 }} \ |
96 | 104 | -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install-${{ matrix.arch.name }}-toolchain \ |
97 | 105 | -S ${{ github.workspace }}/llvm-project/llvm \ |
98 | 106 | -B ${{ github.workspace }}/build-${{ matrix.arch.name }}-toolchain/ \ |
@@ -129,8 +137,8 @@ jobs: |
129 | 137 | -DCOMPILER_RT_BUILD_PROFILE=OFF \ |
130 | 138 | -DCMAKE_C_COMPILER_TARGET=${{ matrix.arch.triple }} \ |
131 | 139 | -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 }}" \ |
134 | 142 | -DCMAKE_C_COMPILER_FORCED=ON \ |
135 | 143 | -DCMAKE_CXX_COMPILER_FORCED=ON \ |
136 | 144 | -DCMAKE_CROSSCOMPILING=ON \ |
@@ -231,6 +239,7 @@ jobs: |
231 | 239 | retention-days: 60 |
232 | 240 |
|
233 | 241 | - name: Update build entry |
| 242 | + if: github.event_name == 'schedule' |
234 | 243 | run: | |
235 | 244 | cd llvm-project/llvm/tools/eld |
236 | 245 | git branch |
|
0 commit comments