Skip to content

librustc/readme.txt: main() is probably the one in ./../librust/rust.rc #6535

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
wants to merge 1 commit into from

Conversation

kud1ing
Copy link

@kud1ing kud1ing commented May 16, 2013

No description provided.

@sanxiyn
Copy link
Member

sanxiyn commented May 16, 2013

I don't think this is right.

@thestinger
Copy link
Contributor

rust.rc is for the wrapper tool afaik

@kud1ing
Copy link
Author

kud1ing commented May 16, 2013

@sanxiyn: So it should be ./../driver/driver.rs?

./driver/rustc.rs does not exist and ./driver/driver.rs does not have a main().
Or should ./../driver/* be moved to ./driver?

I admit i am confused, that's why i'd like to see the documents updated.

@Thiez
Copy link
Contributor

Thiez commented May 16, 2013

The main of rustc is is at the bottom of the file src/librustc/rustc.rc, which is in the same folder as the readme. It then runs run_compiler, which is in the same file. The actual compiling does start in src/librustc/driver/driver.rs, with a call to compile_input.

@kud1ing
Copy link
Author

kud1ing commented May 16, 2013

@Thiez thanks, closing.

@kud1ing kud1ing closed this May 16, 2013
@kud1ing kud1ing deleted the patch-1 branch May 16, 2013 10:19
@kud1ing
Copy link
Author

kud1ing commented May 16, 2013

Opened #6536

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.

4 participants