Skip to content

Add a -main-is flag to rustc #2403

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

Closed
catamorphism opened this issue May 17, 2012 · 4 comments
Closed

Add a -main-is flag to rustc #2403

catamorphism opened this issue May 17, 2012 · 4 comments
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) A-testsuite Area: The testsuite used to check the correctness of rustc C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@catamorphism
Copy link
Contributor

Add a -main-is flag to specify the name of the main function if it's called something other than main. Then allow it to be set if only trans is getting called, so the FIXME in front::test::fold_mod can be resolved.

@pcwalton
Copy link
Contributor

Why not an attribute?

@catamorphism
Copy link
Contributor Author

That would be ok too!

@brson
Copy link
Contributor

brson commented May 23, 2012

Should be an attribute.

@catamorphism
Copy link
Contributor Author

Closing this as I think #4207 covers the same issue and has more discussion.

bors added a commit to rust-lang-ci/rust that referenced this issue Sep 22, 2022
tshepang pushed a commit to tshepang/rust that referenced this issue Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) A-testsuite Area: The testsuite used to check the correctness of rustc C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

3 participants