Skip to content

Commit 213ebd5

Browse files
committed
Build C API tests with clang
Fedora 44 appears to have shipped a version of GCC 16 containing PR120322 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120322), which causes narrow integer arguments not to be zero-extended when they are passed to functions. The bug caused spurious failures in the `callind` test case by passing `SPIDIR_TYPE_NONE` as 0xffffffff and triggering UB in the rust code. Just switch to clang for now (and probably forever?).
1 parent e8d2f07 commit 213ebd5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

c-api-tests/run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ set -euo pipefail
44

55
cd $(dirname $(readlink -f "$0"))
66

7+
export CC=clang
8+
export CXX=clang++
79
export CMAKE_EXPORT_COMPILE_COMMANDS=ON
810
export CTEST_OUTPUT_ON_FAILURE=1
911

0 commit comments

Comments
 (0)