Skip to content

Commit

Permalink
Merge pull request rust-lang#303 from rust-lang/license
Browse files Browse the repository at this point in the history
Add license explanations
  • Loading branch information
antoyo authored Jul 9, 2023
2 parents c4e86b6 + e1092eb commit e062c2c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ $ rustc +$(cat $cg_gccjit_dir/rust-toolchain) -Cpanic=abort -Zcodegen-backend=$c
<dd>Display the time it took to perform codegen for a crate</dd>
</dl>

## Licensing

While this crate is licensed under a dual Apache/MIT license, it links to `libgccjit` which is under the GPLv3+ and thus, the resulting toolchain (rustc + GCC codegen) will need to be released under the GPL license.

However, programs compiled with `rustc_codegen_gcc` do not need to be released under a GPL license.

## Debugging

Sometimes, libgccjit will crash and output an error like this:
Expand Down

0 comments on commit e062c2c

Please sign in to comment.