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

improve doc for new contributors #586

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

g4titanx
Copy link
Contributor

@g4titanx g4titanx commented Jan 3, 2025

this PR fixes issue #562

@g4titanx
Copy link
Contributor Author

g4titanx commented Jan 3, 2025

@antoyo

@g4titanx
Copy link
Contributor Author

g4titanx commented Jan 8, 2025

@antoyo waiting on a review for this too

@antoyo
Copy link
Contributor

antoyo commented Jan 8, 2025

It might take a few more days before I can get to review this.
Sorry for the delay.

@g4titanx g4titanx mentioned this pull request Feb 6, 2025
Copy link
Contributor

@antoyo antoyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job.
Here's a few suggestions for improvement.

@antoyo
Copy link
Contributor

antoyo commented Feb 8, 2025

There's a conflict, so please rebase on the master branch and resolve the conflict.

@g4titanx
Copy link
Contributor Author

There's a conflict, so please rebase on the master branch and resolve the conflict.

done, sorry for the delay.

Copy link
Contributor

@antoyo antoyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nitpicks, but this looks very good. Thanks!
Sorry for the delay: I've been very busy lately.

To run specific tests, use appropriate flags such as:
- `./y.sh test --test-libcore`
- `./y.sh test --std-tests`

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also mention how to run the tests in this directory.

- `./y.sh test --test-libcore`
- `./y.sh test --std-tests`

Additional test running options:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To make it clearer, please specify that the following runs the tests of libgccjit.

- `CG_GCCJIT_DUMP_MODULE`: Dumps a specific module
- `CG_GCCJIT_DUMP_TO_FILE`: Creates C-like representation

Full list of debugging options can be found in the README.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a link to the section in the README.

## Making Contributions

### Finding Issues to Work On
1. Look for issues labeled with `good-first-issue` or `help-wanted`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. Look for issues labeled with `good-first-issue` or `help-wanted`
1. Look for issues labeled with `good first issue` or `help wanted`

and please also make those a link.

### Finding Issues to Work On
1. Look for issues labeled with `good-first-issue` or `help-wanted`
2. Check the [progress report](https://blog.antoyo.xyz/rustc_codegen_gcc-progress-report-34#state_of_rustc_codegen_gcc) for larger initiatives
3. Consider improving documentation or investigate [failing tests](https://github.com/rust-lang/rustc_codegen_gcc/tree/master/tests)(except failing-ui-tests12.txt)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
3. Consider improving documentation or investigate [failing tests](https://github.com/rust-lang/rustc_codegen_gcc/tree/master/tests)(except failing-ui-tests12.txt)
3. Consider improving documentation or investigating [failing tests](https://github.com/rust-lang/rustc_codegen_gcc/tree/master/tests)(except `failing-ui-tests12.txt`)

@@ -40,7 +53,7 @@ to do a few more things.
To build it (most of these instructions come from [here](https://gcc.gnu.org/onlinedocs/jit/internals/index.html), so don't hesitate to take a look there if you encounter an issue):

```bash
$ git clone https://github.com/rust-lang/gcc
$ git clone https://github.com/antoyo/gcc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert this change as the main repo is now under rust-lang.

Comment on lines +17 to +18
Note: **This requires a patched libgccjit in order to work.
You need to use my [fork of gcc](https://github.com/antoyo/gcc) which already includes these patches.**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To make this clearer, perhaps mention that the default example config download libgccjit from the CI so this will use the fork automatically.

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.

2 participants