Skip to content

Commit 360fae6

Browse files
committed
fix(lint): disable some cfg warnings
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
1 parent ab5289f commit 360fae6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,13 @@ fn check_php_version(info: &PHPInfo) -> Result<()> {
230230

231231
const PHP_83_API_VER: u32 = 20230831;
232232

233+
println!("cargo::rustc-check-cfg=cfg(php80)");
234+
println!("cargo::rustc-check-cfg=cfg(php81)");
235+
println!("cargo::rustc-check-cfg=cfg(php82)");
236+
println!("cargo::rustc-check-cfg=cfg(php83)");
237+
println!("cargo::rustc-check-cfg=cfg(php_debug)");
238+
println!("cargo::rustc-check-cfg=cfg(php_zts)");
239+
233240
println!("cargo:rustc-cfg=php80");
234241

235242
if (PHP_81_API_VER..PHP_82_API_VER).contains(&version) {

0 commit comments

Comments
 (0)