Skip to content

Commit e062c2c

Browse files
authored
Merge pull request #303 from rust-lang/license
Add license explanations
2 parents c4e86b6 + e1092eb commit e062c2c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Readme.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ $ rustc +$(cat $cg_gccjit_dir/rust-toolchain) -Cpanic=abort -Zcodegen-backend=$c
105105
<dd>Display the time it took to perform codegen for a crate</dd>
106106
</dl>
107107

108+
## Licensing
109+
110+
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.
111+
112+
However, programs compiled with `rustc_codegen_gcc` do not need to be released under a GPL license.
113+
108114
## Debugging
109115

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

0 commit comments

Comments
 (0)