Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to LLVM 18.1.0 #493

Merged
merged 1 commit into from Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci-cpp.yml
Expand Up @@ -63,14 +63,14 @@ jobs:
uses: actions/cache@v4
with:
path: /home/runner/work/spice/llvm
key: llvm-18.1.0-rc3
key: llvm-18.1.0

- name: Setup LLVM
if: steps.cache-llvm.outputs.cache-hit != 'true'
run: |
cd ..
rm -rf llvm
git clone --depth 1 --branch llvmorg-18.1.0-rc3 https://github.com/llvm/llvm-project llvm
git clone --depth 1 --branch llvmorg-18.1.0 https://github.com/llvm/llvm-project llvm
mkdir ./llvm/build
cd ./llvm/build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CXX_FLAGS_RELEASE="-O2" -DLLVM_ENABLE_RTTI=ON -GNinja ../llvm
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Expand Up @@ -46,14 +46,14 @@ jobs:
uses: actions/cache@v4
with:
path: /home/runner/work/spice/llvm
key: llvm-18.1.0-rc3
key: llvm-18.1.0

- name: Setup LLVM
if: steps.cache-llvm.outputs.cache-hit != 'true'
run: |
echo "/usr/lib/ccache:/usr/local/opt/ccache/libexec" >> $GITHUB_PATH
cd ..
git clone --depth 1 --branch llvmorg-18.1.0-rc3 https://github.com/llvm/llvm-project llvm
git clone --depth 1 --branch llvmorg-18.1.0 https://github.com/llvm/llvm-project llvm
mkdir ./llvm/build
cd ./llvm/build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CXX_FLAGS_RELEASE="-O2" -DLLVM_ENABLE_RTTI=ON -GNinja ../llvm
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Expand Up @@ -42,12 +42,12 @@ jobs:
uses: actions/cache@v4
with:
path: /home/runner/work/spice/spice/llvm
key: llvm-18.1.0-rc3-linux-x64
key: llvm-18.1.0-linux-x64

- name: Setup LLVM
if: steps.cache-llvm.outputs.cache-hit != 'true'
run: |
git clone --depth 1 --branch llvmorg-18.1.0-rc3 https://github.com/llvm/llvm-project.git llvm
git clone --depth 1 --branch llvmorg-18.1.0 https://github.com/llvm/llvm-project.git llvm
mkdir ./llvm/build
cd ./llvm/build
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CXX_FLAGS_RELEASE="-O2" -DLLVM_ENABLE_RTTI=ON -Wno-dev -Wattributes ../llvm
Expand Down Expand Up @@ -109,12 +109,12 @@ jobs:
uses: actions/cache@v4
with:
path: /home/runner/work/spice/spice/llvm
key: llvm-18.1.0-rc3-linux-aarch64
key: llvm-18.1.0-linux-aarch64

- name: Clone LLVM
if: steps.cache-llvm.outputs.cache-hit != 'true'
run: |
git clone --depth 1 --branch llvmorg-18.1.0-rc3 https://github.com/llvm/llvm-project.git llvm
git clone --depth 1 --branch llvmorg-18.1.0 https://github.com/llvm/llvm-project.git llvm
mkdir ./llvm/build

- name: Setup LLVM
Expand Down
2 changes: 1 addition & 1 deletion dev-setup.bat
Expand Up @@ -34,7 +34,7 @@ echo done.

:: Clone LLVM
echo [Step 2] Cloning LLVM (Could take a while) ...
git clone --depth 1 --branch llvmorg-18.1.0-rc3 https://github.com/llvm/llvm-project llvm
git clone --depth 1 --branch llvmorg-18.1.0 https://github.com/llvm/llvm-project llvm
echo done.

:: Build LLVM
Expand Down
2 changes: 1 addition & 1 deletion dev-setup.sh
Expand Up @@ -16,7 +16,7 @@ colored_echo "done."

# Clone LLVM
colored_echo "[Step 2] Cloning LLVM (Could take a while) ... "
git clone --depth 1 --branch llvmorg-18.1.0-rc3 https://github.com/llvm/llvm-project llvm
git clone --depth 1 --branch llvmorg-18.1.0 https://github.com/llvm/llvm-project llvm
colored_echo "done."

# Build LLVM
Expand Down