Bump clang dep version from 16 to 17

The latest version of third_party/dawn requires clang 17.
This commit is contained in:
Powei Feng
2026-04-21 14:19:46 -07:00
parent 4637f6097b
commit c645cc9068
4 changed files with 12 additions and 12 deletions

View File

@@ -10,7 +10,7 @@ runs:
- name: Prerequisites
if: runner.os == 'macOS'
run: |
# Must have at least clang-16 for a webgpu/dawn build.
# Must have at least clang-17 for a webgpu/dawn build.
sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
# this enforces the gltf_viewer build to use apple clang as oppose the brew clang used for get-mesa
echo "CC=/usr/bin/clang" >> $GITHUB_ENV

View File

@@ -5,7 +5,7 @@
To build Filament, you must first install the following tools:
- CMake 3.22.1 (or more recent)
- clang 16.0 (or more recent) (Required for Linux and macOS; see [Windows](#windows) section for MSVC support)
- clang 17.0 (or more recent) (Required for Linux and macOS; see [Windows](#windows) section for MSVC support)
- [ninja 1.10](https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages) (or more recent)
Additional dependencies may be required for your operating system. Please refer to the appropriate
@@ -93,17 +93,17 @@ Options can also be set with the CMake GUI.
Make sure you've installed the following dependencies:
- `clang-16` or higher
- `clang-17` or higher
- `libglu1-mesa-dev`
- `libc++-16-dev` (`libcxx-devel` and `libcxx-static` on Fedora) or higher
- `libc++abi-16-dev` (`libcxxabi-static` on Fedora) or higher
- `libc++-17-dev` (`libcxx-devel` and `libcxx-static` on Fedora) or higher
- `libc++abi-17-dev` (`libcxxabi-static` on Fedora) or higher
- `ninja-build`
- `libxi-dev`
- `libxcomposite-dev` (`libXcomposite-devel` on Fedora)
- `libxxf86vm-dev` (`libXxf86vm-devel` on Fedora)
```shell
sudo apt install clang-16 libglu1-mesa-dev libc++-16-dev libc++abi-16-dev ninja-build libxi-dev libxcomposite-dev libxxf86vm-dev -y
sudo apt install clang-17 libglu1-mesa-dev libc++-17-dev libc++abi-17-dev ninja-build libxi-dev libxcomposite-dev libxxf86vm-dev -y
```
After dependencies have been installed, we highly recommend using the [easy build](#easy-build)
@@ -124,7 +124,7 @@ Your Linux distribution might default to `gcc` instead of `clang`, if that's the
```shell
mkdir out/cmake-release
cd out/cmake-release
# Or use a specific version of clang, for instance /usr/bin/clang-16
# Or use a specific version of clang, for instance /usr/bin/clang-17
CC=/usr/bin/clang CXX=/usr/bin/clang++ CXXFLAGS=-stdlib=libc++ \
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../release/filament ../..
```
@@ -134,8 +134,8 @@ solution is to use `update-alternatives` to both change the default compiler, an
specific version of clang:
```shell
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 100
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-16 100
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-17 100
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-17 100
update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100
update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 100
```

View File

@@ -20,7 +20,7 @@ if [[ "$GITHUB_WORKFLOW" ]]; then
fi
OS_NAME=$(uname -s)
LLVM_VERSION=${GITHUB_LLVM_VERSION-16}
LLVM_VERSION=${GITHUB_LLVM_VERSION-17}
MESA_VERSION=${GITHUB_MESA_VERSION-24.2.1}
ORIG_DIR=$(pwd)
MESA_DIR=${MESA_DIR-${ORIG_DIR}/mesa}

View File

@@ -1,8 +1,8 @@
GITHUB_CLANG_VERSION=16
GITHUB_CLANG_VERSION=17
GITHUB_CMAKE_VERSION=3.22.1
GITHUB_NINJA_VERSION=1.10.2
GITHUB_MESA_VERSION=24.2.1
GITHUB_LLVM_VERSION=16
GITHUB_LLVM_VERSION=17
GITHUB_NDK_VERSION=29.0.14206865
GITHUB_EMSDK_VERSION=3.1.60
GITHUB_VULKANSDK_VERSION=1.4.321.0