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

Do not fail if --emit≠link and there’s no main fn #22051

Merged
merged 2 commits into from
Feb 10, 2015

Conversation

nagisa
Copy link
Member

@nagisa nagisa commented Feb 7, 2015

Fixes #21813

@rust-highfive
Copy link
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

Could you also add a test for this? I suppose it could lead to weird errors if you're generating an object file (or generating IR and then using that to make an object later), but it seems like this may be worth it.

@nagisa
Copy link
Member Author

nagisa commented Feb 8, 2015

@alexcrichton done.

@alexcrichton
Copy link
Member

@bors: r+ 61b4823

@bors
Copy link
Collaborator

bors commented Feb 10, 2015

⌛ Testing commit 61b4823 with merge 684944f...

@bors
Copy link
Collaborator

bors commented Feb 10, 2015

💔 Test failed - auto-win-64-nopt-t

@alexcrichton
Copy link
Member

@bors: retry

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Feb 10, 2015
@bors bors merged commit 61b4823 into rust-lang:master Feb 10, 2015
nagisa added a commit to nagisa/rust that referenced this pull request Feb 11, 2015
This resulted in some very unexpected fallout such as empty llvm-ir, llvm-bc and asm in some cases.
See rust-lang#22183 for related info.
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.

rustc should not fail if emit≠link and main does not exist
4 participants