Skip to content

Commit

Permalink
Upgrade llvm version to v17.0.6
Browse files Browse the repository at this point in the history
Signed-off-by: Tao He <[email protected]>
  • Loading branch information
sighingnow committed Mar 17, 2024
1 parent 730d7fa commit cebcbe9
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ macos_instance:

env:
MACOSX_DEPLOYMENT_TARGET: "10.15"
LLVM_VER: 16.0.6
LLVM_VER: 17.0.6

task:
checkout_script:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/libclang-alpine-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: libclang-alpine-amd64
on: [push, pull_request]

env:
LLVM_VER: 16.0.6
LLVM_VER: 17.0.6

concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
Expand All @@ -14,11 +14,11 @@ jobs:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: free disk spaces
run: |
./.github/free-disk-space.sh || true
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install wheel dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/libclang-linux-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: libclang-linux-aarch64
on: [push, pull_request]

env:
LLVM_VER: 16.0.6
LLVM_VER: 17.0.6

concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
Expand All @@ -14,11 +14,11 @@ jobs:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: free disk spaces
run: |
./.github/free-disk-space.sh || true
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install wheel dependencies
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/libclang-linux-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: libclang-linux-amd64
on: [push, pull_request]

env:
LLVM_VER: 16.0.6
LLVM_VER: 17.0.6

concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
Expand All @@ -14,11 +14,11 @@ jobs:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: free disk spaces
run: |
./.github/free-disk-space.sh || true
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install wheel dependencies
Expand Down Expand Up @@ -80,8 +80,8 @@ jobs:
runs-on: ubuntu-20.04
needs: [build-and-deploy]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install wheel dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/libclang-linux-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: libclang-linux-arm
on: [push, pull_request]

env:
LLVM_VER: 16.0.6
LLVM_VER: 17.0.6

concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
Expand All @@ -14,11 +14,11 @@ jobs:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: free disk spaces
run: |
./.github/free-disk-space.sh || true
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install wheel dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/libclang-macosx-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: libclang-macosx-amd64
on: [push, pull_request]

env:
LLVM_VER: 16.0.6
LLVM_VER: 17.0.6

concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
Expand All @@ -14,8 +14,8 @@ jobs:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install wheel dependencies
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/libclang-macosx-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: libclang-macosx-arm64
on: [push, pull_request]

env:
LLVM_VER: 16.0.6
LLVM_VER: 17.0.6
BIN: /usr/local/opt/llvm/bin

concurrency:
Expand All @@ -15,8 +15,8 @@ jobs:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: install wheel dependencies
Expand All @@ -37,7 +37,8 @@ jobs:
echo "$BIN" >> "$GITHUB_PATH"
set echo
uname -a
cd llvm-project-$LLVM_VER
cd llvm-project-$LLVM_VER
# note: LIBCXX_ENABLE_ASSERTIONS=FALSE is for the "undefined symbol: std::__1::__libcpp_verbose_abort(char const*, ...)" failure
cmake -S llvm \
-G "Unix Makefiles" -B build \
-DBUILD_SHARED_LIBS=OFF \
Expand All @@ -48,7 +49,7 @@ jobs:
-DCMAKE_OSX_ARCHITECTURES=arm64 \
-DCMAKE_SYSTEM_NAME=Darwin \
-DDEFAULT_SYSROOT="$(xcrun --show-sdk-path)" \
-DLLVM_DEFAULT_TARGET_TRIPLE=16.0.6-arm64-apple-darwin21.6 \
-DLLVM_DEFAULT_TARGET_TRIPLE=17.0.6-arm64-apple-darwin21.6 \
-DLLVM_ENABLE_PIC=False \
-DLLVM_ENABLE_PROJECTS=clang \
-DLLVM_ENABLE_TERMINFO=OFF \
Expand All @@ -57,6 +58,7 @@ jobs:
-DLLVM_ENABLE_ZSTD=OFF \
-DLLVM_NATIVE_TOOL_DIR=$BIN \
-DLLVM_USE_LINKER=lld \
-DLIBCXX_ENABLE_ASSERTIONS=FALSE \
-DLLVM_TARGETS_TO_BUILD=AArch64
- name: build
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/libclang-windows-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: libclang-windows-aarch64
on: [push, pull_request]

env:
LLVM_VER: 16.0.6
LLVM_VER: 17.0.6

concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
Expand All @@ -14,8 +14,8 @@ jobs:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install wheel dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/libclang-windows-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: libclang-windows-amd64
on: [push, pull_request]

env:
LLVM_VER: 16.0.6
LLVM_VER: 17.0.6

concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
Expand All @@ -14,8 +14,8 @@ jobs:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install wheel dependencies
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
# built documents.
#
# The short X.Y version.
version = '16.0.6'
version = '17.0.6'
# The full version, including alpha/beta/rc tags.
release = '16.0.6'
release = '17.0.6'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:Date: 2021-04-17
:Version: 16.0.6
:Version: 17.0.6
:Authors: - The LLVM Team

.. meta::
Expand Down
2 changes: 1 addition & 1 deletion scripts/update_python_clang_bindings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -euo pipefail

TOP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"

LLVM_VERSION="${LLVM_VERSION:-16.0.6}"
LLVM_VERSION="${LLVM_VERSION:-17.0.6}"
LLVM_URL_PREFIX="https://raw.githubusercontent.com/llvm/llvm-project/llvmorg-${LLVM_VERSION}/clang/bindings/python"

LISTING=(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='libclang',
version='16.0.6',
version='17.0.6',
description='Clang Python Bindings, mirrored from the official LLVM repo: https://github.com/llvm/llvm-project/tree/main/clang/bindings/python, to make the installation process easier.',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down
2 changes: 1 addition & 1 deletion setup_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def run(self):

setup(
name='libclang',
version='16.0.6',
version='17.0.6',
description='Clang Python Bindings, mirrored from the official LLVM repo: https://github.com/llvm/llvm-project/tree/main/clang/bindings/python, to make the installation process easier.',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit cebcbe9

Please sign in to comment.