Skip to content

Commit 04a39ca

Browse files
authored
fix(build): add z3 include path for RHEL/Fedora bindgen compatibility (#1388)
On RHEL and Fedora, the z3 header is installed to /usr/include/z3/ rather than /usr/include/. The z3-sys crate's bindgen step fails because pkg-config doesn't find z3 on these distros. Add the extra include path via BINDGEN_EXTRA_CLANG_ARGS in mise.toml — the -I flag is silently ignored on systems where the path doesn't exist.
1 parent d620d65 commit 04a39ca

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.cargo/config.toml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
[env]
5+
# z3-sys bindgen needs the z3 include path. On some distros (e.g. RHEL/Fedora)
6+
# the header lives in /usr/include/z3/ rather than /usr/include/. The extra -I
7+
# is harmless on systems where the path doesn't exist.
8+
BINDGEN_EXTRA_CLANG_ARGS = "-I/usr/include/z3"

0 commit comments

Comments
 (0)