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
$ ./prepare_build.sh # download and patch sysroot src
25
27
$ ./build.sh --release
26
28
```
@@ -109,6 +111,13 @@ Or add a breakpoint to `add_error` in gdb and print the line number using:
109
111
110
112
```
111
113
p loc->m_line
114
+
p loc->m_filename->m_buffer
115
+
```
116
+
117
+
To print a debug representation of a tree:
118
+
119
+
```c
120
+
debug_tree(expr);
112
121
```
113
122
114
123
To get the `rustc` command to run in `gdb`, add the `--verbose` flag to `cargo build`.
@@ -134,4 +143,5 @@ To get the `rustc` command to run in `gdb`, add the `--verbose` flag to `cargo b
134
143
* Set `linker='-Clinker=m68k-linux-gcc'`.
135
144
* Set the path to the cross-compiling libgccjit in `gcc_path`.
136
145
* Disable the 128-bit integer types if the target doesn't support them by using `let i128_type = context.new_type::<i64>();` in `context.rs` (same for u128_type).
146
+
* Comment the line: `context.add_command_line_option("-masm=intel");` in src/base.rs.
137
147
* (might not be necessary) Disable the compilation of libstd.so (and possibly libcore.so?).
0 commit comments