Skip to content

support building Miri outside a git repo #1798

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

Merged
merged 1 commit into from
May 15, 2021
Merged

Conversation

RalfJung
Copy link
Member

Fixes rust-lang/rust#84182

@semarie this should fix your problem... but I think any version of Miri actually shipped to users should have the proper git version information embedded, so I am not sure if this is the right fix. How do you do this for rustc proper? Even stable builds usually have a git version:

$ rustc +stable --version
rustc 1.51.0 (2fd73fabe 2021-03-23)

@RalfJung
Copy link
Member Author

Judging from this, rustc seems to fall back to just omitting the git info when it cannot be obtained. So I changed Miri to do the same.

@RalfJung
Copy link
Member Author

@bors r=oli-obk

@bors
Copy link
Contributor

bors commented May 15, 2021

📌 Commit 64f128c has been approved by oli-obk

@bors
Copy link
Contributor

bors commented May 15, 2021

⌛ Testing commit 64f128c with merge e5b3400...

@bors
Copy link
Contributor

bors commented May 15, 2021

☀️ Test successful - checks-actions
Approved by: oli-obk
Pushing e5b3400 to master...

@bors bors merged commit e5b3400 into rust-lang:master May 15, 2021
@semarie
Copy link

semarie commented May 15, 2021

@RalfJung thanks !

rustc +stable --version shows the git version because you installed it from rustup. if you install rustc from downstream (linux distribution or package manager), it is usually built from source (using tarball), and so do not include the git version.

@RalfJung RalfJung deleted the nogit branch May 16, 2021 08:41
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.

Unable to build nightly from tarball due to miri (git repository expected)
4 participants