Skip to content

Commit 1f4f277

Browse files
svenvhPavel V Chupin
authored andcommitted
Temporarily allow use of deprecated functions
LLVM commit c99424f ("[IR] Deprecate Type::getPointerElementType() (NFC)", 2022-04-20) caused out-of-tree builds to fail (as these use `-Werror`). Replacing all `Type::getPointerElementType` calls is a longer term effort so turn deprecation errors back into warnings to resume out-of-tree builds. Original commit: KhronosGroup/SPIRV-LLVM-Translator@55d1de8
1 parent 36c00ce commit 1f4f277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm-spirv/.github/workflows/check-out-of-tree-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
mkdir build && cd build
7676
cmake ${{ github.workspace }}/SPIRV-LLVM-Translator \
7777
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
78-
-DCMAKE_CXX_FLAGS="-Werror" \
78+
-DCMAKE_CXX_FLAGS="-Werror -Wno-error=deprecated-declarations" \
7979
-DLLVM_INCLUDE_TESTS=ON \
8080
-DLLVM_EXTERNAL_LIT="/usr/lib/llvm-${{ env.LLVM_VERSION }}/build/utils/lit/lit.py" \
8181
-DLLVM_EXTERNAL_PROJECTS="SPIRV-Headers" \

0 commit comments

Comments
 (0)