Skip to content

[v13] build: Scope RUST_VERSION var to single target#25962

Merged
camscale merged 2 commits intobranch/v13from
bot/backport-25960-branch/v13
May 10, 2023
Merged

[v13] build: Scope RUST_VERSION var to single target#25962
camscale merged 2 commits intobranch/v13from
bot/backport-25960-branch/v13

Conversation

@camscale
Copy link
Copy Markdown
Contributor

@camscale camscale commented May 9, 2023

Backport #25960 to branch/v13

Scope the RUST_VERSION variable to the single
rustup-install-target-toolchain target that needs it. Setting it at
the top-level causes a strange interaction between the top-level
Makefile and the one in build.assets/ that causes make fix-imports
(and presumably any other target that chains to build.assets/Makefile
and uses RUST_VERSION) to get an empty RUST_VERSION.

We use := when setting RUST_VERSION otherwise the same problem is
present but just for the rustup-install-target-toolchain target.

Backport: #25960

Scope the `RUST_VERSION` variable to the single
`rustup-install-target-toolchain` target that needs it. Setting it at
the top-level causes a strange interaction between the top-level
Makefile and the one in `build.assets/` that causes `make fix-imports`
(and presumably any other target that chains to `build.assets/Makefile`
and uses `RUST_VERSION`) to get an empty `RUST_VERSION`.

We use `:=` when setting `RUST_VERSION` otherwise the same problem is
present but just for the `rustup-install-target-toolchain` target.
@camscale camscale enabled auto-merge May 10, 2023 01:39
@camscale camscale added this pull request to the merge queue May 10, 2023
Merged via the queue into branch/v13 with commit 2adbd31 May 10, 2023
@camscale camscale deleted the bot/backport-25960-branch/v13 branch May 10, 2023 02:27
@r0mant r0mant mentioned this pull request Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants