You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+26-6
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,10 @@ A secondary goal is to check if using the gcc backend will provide any run-time
16
16
17
17
**rustup:** Follow the instructions on the official [website](https://www.rust-lang.org/tools/install)
18
18
19
+
**DejaGnu:** Consider to install DejaGnu which is necessary for running the libgccjit test suite. [website](https://www.gnu.org/software/dejagnu/#downloading)
20
+
21
+
22
+
19
23
## Building
20
24
21
25
**This requires a patched libgccjit in order to work.
<dd>Don't cache object files in the incremental cache. Useful during development of cg_gccjit
148
-
to make it possible to use incremental mode for all analyses performed by rustc without caching
149
-
object files when their content should have been changed by a change to cg_gccjit.</dd>
150
-
<dt>CG_GCCJIT_DISPLAY_CG_TIME</dt>
151
-
<dd>Display the time it took to perform codegen for a crate</dd>
150
+
<dt>CG_GCCJIT_DUMP_ALL_MODULES</dt>
151
+
<dd>Enables dumping of all compilation modules. When set to "1", a dump is created for each module during compilation and stored in `/tmp/reproducers/`.</dd>
152
+
<dt>CG_GCCJIT_DUMP_MODULE</dt>
153
+
<dd>Enables dumping of a specific module. When set with the module name, e.g., `CG_GCCJIT_DUMP_MODULE=module_name`, a dump of that specific module is created in `/tmp/reproducers/`.</dd>
152
154
<dt>CG_RUSTFLAGS</dt>
153
155
<dd>Send additional flags to rustc. Can be used to build the sysroot without unwinding by setting `CG_RUSTFLAGS=-Cpanic=abort`.</dd>
154
156
<dt>CG_GCCJIT_DUMP_TO_FILE</dt>
155
157
<dd>Dump a C-like representation to /tmp/gccjit_dumps and enable debug info in order to debug this C-like representation.</dd>
158
+
<dt>CG_GCCJIT_DUMP_RTL</dt>
159
+
<dd>Dumps RTL (Register Transfer Language) for virtual registers.</dd>
160
+
<dt>CG_GCCJIT_DUMP_RTL_ALL</dt>
161
+
<dd>Dumps all RTL passes.</dd>
162
+
<dt>CG_GCCJIT_DUMP_TREE_ALL</dt>
163
+
<dd>Dumps all tree (GIMPLE) passes.</dd>
164
+
<dt>CG_GCCJIT_DUMP_IPA_ALL</dt>
165
+
<dd>Dumps all Interprocedural Analysis (IPA) passes.</dd>
166
+
<dt>CG_GCCJIT_DUMP_CODE</dt>
167
+
<dd>Dumps the final generated code.</dd>
168
+
<dt>CG_GCCJIT_DUMP_GIMPLE</dt>
169
+
<dd>Dumps the initial GIMPLE representation.</dd>
170
+
<dt>CG_GCCJIT_DUMP_EVERYTHING</dt>
171
+
<dd>Enables dumping of all intermediate representations and passes.</dd>
172
+
<dt>CG_GCCJIT_KEEP_INTERMEDIATES</dt>
173
+
<dd>Keeps intermediate files generated during the compilation process.</dd>
174
+
<dt>CG_GCCJIT_VERBOSE</dt>
175
+
<dd>Enables verbose output from the GCC driver.</dd>
0 commit comments