Skip to content

Commit

Permalink
Build script: support NGINX_DIR env var to specify the Nginx folder
Browse files Browse the repository at this point in the history
  • Loading branch information
gabioprisan committed Dec 11, 2023
1 parent d8eabb1 commit 5929517
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nginx_module/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
"..",
"../..",
Expand Down

0 comments on commit 5929517

Please sign in to comment.