From 59012ccc6ed90212fce792195c4018df0e54d750 Mon Sep 17 00:00:00 2001 From: Omer Faruk Bayram Date: Fri, 7 Apr 2023 11:15:23 +0300 Subject: [PATCH] build: rename `BUILT_VERSION` to `BUILD_VERSION` Signed-off-by: Omer Faruk Bayram --- build.rs | 4 ++-- performance-metrics/src/main.rs | 2 +- src/bin/ch-remote.rs | 2 +- src/main.rs | 2 +- vhost_user_block/src/main.rs | 2 +- vhost_user_net/src/main.rs | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build.rs b/build.rs index a0b98f571..1a5f8ec2c 100644 --- a/build.rs +++ b/build.rs @@ -17,8 +17,8 @@ fn main() { } // This println!() has a special behavior, as it will set the environment - // variable BUILT_VERSION, so that it can be reused from the binary. + // variable BUILD_VERSION, so that it can be reused from the binary. // Particularly, this is used from src/main.rs to display the exact // version. - println!("cargo:rustc-env=BUILT_VERSION={version}"); + println!("cargo:rustc-env=BUILD_VERSION={version}"); } diff --git a/performance-metrics/src/main.rs b/performance-metrics/src/main.rs index f30d1b28d..0fe2dd0ea 100644 --- a/performance-metrics/src/main.rs +++ b/performance-metrics/src/main.rs @@ -671,7 +671,7 @@ fn main() { let opts: Options = argh::from_env(); if opts.version { - println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILT_VERSION")); + println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILD_VERSION")); return; } diff --git a/src/bin/ch-remote.rs b/src/bin/ch-remote.rs index a1692b3dc..6dc239b97 100644 --- a/src/bin/ch-remote.rs +++ b/src/bin/ch-remote.rs @@ -688,7 +688,7 @@ fn main() { let toplevel: TopLevel = argh::from_env(); if matches!(toplevel.command, SubCommandEnum::Version(_)) { - println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILT_VERSION")); + println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILD_VERSION")); return; } diff --git a/src/main.rs b/src/main.rs index eca2d2fa4..e53e3642c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -571,7 +571,7 @@ fn main() { let toplevel: TopLevel = argh::from_env(); if toplevel.version { - println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILT_VERSION")); + println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILD_VERSION")); return; } diff --git a/vhost_user_block/src/main.rs b/vhost_user_block/src/main.rs index 14c88e186..626dbd9ce 100644 --- a/vhost_user_block/src/main.rs +++ b/vhost_user_block/src/main.rs @@ -32,7 +32,7 @@ fn main() { let toplevel: TopLevel = argh::from_env(); if toplevel.version { - println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILT_VERSION")); + println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILD_VERSION")); return; } diff --git a/vhost_user_net/src/main.rs b/vhost_user_net/src/main.rs index d00cfeff1..7e67e40bd 100644 --- a/vhost_user_net/src/main.rs +++ b/vhost_user_net/src/main.rs @@ -28,7 +28,7 @@ fn main() { let toplevel: TopLevel = argh::from_env(); if toplevel.version { - println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILT_VERSION")); + println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILD_VERSION")); return; }