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

rustc should not fail if emit≠link and main does not exist #21813

Closed
nagisa opened this issue Jan 31, 2015 · 0 comments · Fixed by #22051
Closed

rustc should not fail if emit≠link and main does not exist #21813

nagisa opened this issue Jan 31, 2015 · 0 comments · Fixed by #22051
Labels
A-driver Area: rustc_driver that ties everything together into the `rustc` compiler A-linkage Area: linking into static, shared libraries and binaries

Comments

@nagisa
Copy link
Member

nagisa commented Jan 31, 2015

There’s no reason for the compiler to fail if --emit≠link is specified and main function does not exist.

Relevant code appears to be src/librustc/middle/entry.rs.

@kmcallister kmcallister added A-driver Area: rustc_driver that ties everything together into the `rustc` compiler A-linkage Area: linking into static, shared libraries and binaries labels Feb 1, 2015
nagisa added a commit to nagisa/rust that referenced this issue Feb 7, 2015
alexcrichton added a commit to alexcrichton/rust that referenced this issue Feb 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-driver Area: rustc_driver that ties everything together into the `rustc` compiler A-linkage Area: linking into static, shared libraries and binaries
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants