Skip to content

Commit 2b861ab

Browse files
committed
fix build
1 parent 8dfa28b commit 2b861ab

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/llvm.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,25 @@ jobs:
6565
- name: Checkout repository
6666
uses: actions/checkout@v4
6767

68+
- name: Increase Swap Space
69+
if: runner.os == 'Linux'
70+
run: |
71+
echo "===== Initial Status ====="
72+
sudo swapon --show
73+
free -h
74+
75+
echo "===== Creating Swap File ====="
76+
sudo swapoff -a
77+
sudo fallocate -l 16G /mnt/swapfile
78+
sudo chmod 600 /mnt/swapfile
79+
sudo mkswap /mnt/swapfile
80+
sudo swapon /mnt/swapfile
81+
82+
echo "===== Final Status ====="
83+
sudo swapon --show
84+
free -h
85+
df -h
86+
6887
- name: Setup Pixi
6988
uses: prefix-dev/setup-pixi@v0.9.3
7089
with:

scripts/build-llvm.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ def main():
153153
f"-DCMAKE_INSTALL_PREFIX={install_prefix}",
154154
"-DCMAKE_C_COMPILER=clang",
155155
"-DCMAKE_CXX_COMPILER=clang++",
156+
"-DCMAKE_C_FLAGS=-w",
157+
"-DCMAKE_CXX_FLAGS=-w",
158+
"-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=lld",
159+
"-DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=lld",
160+
"-DCMAKE_MODULE_LINKER_FLAGS=-fuse-ld=lld",
156161
"-DLLVM_ENABLE_ZLIB=OFF",
157162
"-DLLVM_ENABLE_ZSTD=OFF",
158163
"-DLLVM_ENABLE_LIBXML2=OFF",

0 commit comments

Comments
 (0)