Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions nginx-sys/build/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ pub fn print_cargo_metadata<T: AsRef<Path>>(

if name == "nginx_build" {
println!("cargo::metadata=build={}", unquote(value));
} else if name == "nginx_name" {
println!("cargo::metadata=name={}", unquote(value));
} else if name == "nginx_version" {
println!("cargo::metadata=version={}", unquote(value));
} else if name == "nginx_version_number" {
Expand Down Expand Up @@ -453,6 +455,7 @@ RUST_CONF_HTTP=1
#endif

RUST_CONF_NGINX_BUILD=NGINX_VER_BUILD
RUST_CONF_NGINX_NAME=NGINX_NAME
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, add an #ifdef guard and, preferably, a default value.

RUST_CONF_NGINX_VERSION=NGINX_VER
RUST_CONF_NGINX_VERSION_NUMBER=nginx_version
"
Expand Down