From 592951753e9fb2d8fc3e1172d1b2027f4c83ed06 Mon Sep 17 00:00:00 2001 From: Gabriel Oprisan Date: Mon, 11 Dec 2023 15:10:38 +0200 Subject: [PATCH] Build script: support NGINX_DIR env var to specify the Nginx folder --- nginx_module/build.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nginx_module/build.rs b/nginx_module/build.rs index ec092f2..0db0d64 100644 --- a/nginx_module/build.rs +++ b/nginx_module/build.rs @@ -85,6 +85,12 @@ fn search_nginx_root_folder() -> String { }) } + if let Ok(nginx_dir) = std::env::var("NGINX_DIR") { + if check_nginx_root(Path::new(&nginx_dir)) { + return nginx_dir; + } + } + let base_locations = [ "..", "../..",