Skip to content

Commit

Permalink
Rename CARGOZIGBUILD_RUSTC_VERSION to CARGO_ZIGBUILD_RUSTC_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Dec 16, 2024
1 parent 961227f commit 02165f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl Zig {
.and_then(|index| cmd_args.get(index + 1));
let target_info = TargetInfo::new(target);

let rustc_ver = match env::var("CARGOZIGBUILD_RUSTC_VERSION") {
let rustc_ver = match env::var("CARGO_ZIGBUILD_RUSTC_VERSION") {
Ok(version) => version.parse()?,
Err(_) => rustc_version::version()?,
};
Expand Down Expand Up @@ -517,7 +517,7 @@ impl Zig {
let rustc_meta = rustc_version::version_meta()?;
Self::add_env_if_missing(
cmd,
"CARGOZIGBUILD_RUSTC_VERSION",
"CARGOZIG_BUILD_RUSTC_VERSION",

This comment has been minimized.

Copy link
@timotheyca

timotheyca Dec 16, 2024

Contributor

ohno

rustc_meta.semver.to_string(),
);
let host_target = &rustc_meta.host;
Expand Down

0 comments on commit 02165f1

Please sign in to comment.