Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: add option to explictly set RUSTFLAGS #101

Merged
merged 1 commit into from
Oct 23, 2024
Merged

build: add option to explictly set RUSTFLAGS #101

merged 1 commit into from
Oct 23, 2024

Conversation

niladrih
Copy link
Member

@niladrih niladrih commented Oct 23, 2024

Reads the env RUSTFLAGS from the env and passes it to nix-build as an argstr.

--extra-build-args makes it difficult to provide as an input due to the shell's interpretation of "" and the style of arg handling that we use on release.sh. Using an env to avoid breaking the extra-args bit into a space-separated string array.

As of now, extra-args doesn't have many use-cases that I know of. However, I've recently stumbled on to a CI issue where being able to set RUSTFLAGS globally would be useful.

Reads the env RUSTFLAGS from the env and passes it to nix-build as an argstr.

Signed-off-by: Niladri Halder <[email protected]>
@niladrih niladrih merged commit 8c33b56 into develop Oct 23, 2024
5 checks passed
@niladrih niladrih deleted the rustflags branch October 23, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants