mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-02 17:28:30 +00:00
Make it possible to compile redbean with chibicc
This cuts build latency down from 5 seconds to 500 milliseconds.
This commit is contained in:
parent
552525cbdd
commit
6ff46ca373
50 changed files with 898 additions and 824 deletions
4
third_party/chibicc/codegen.c
vendored
4
third_party/chibicc/codegen.c
vendored
|
@ -192,9 +192,9 @@ void print_loc(int64_t file, int64_t line) {
|
|||
if (file != lastfile || line != lastline) {
|
||||
locbuf = malloc(2 + 4 + 1 + 20 + 1 + 20 + 1);
|
||||
p = stpcpy(locbuf, "\t.loc\t");
|
||||
p += int64toarray_radix10(file, p);
|
||||
p = FormatInt64(p, file);
|
||||
*p++ = ' ';
|
||||
int64toarray_radix10(line, p);
|
||||
FormatInt64(p, line);
|
||||
emitlin(locbuf);
|
||||
free(locbuf);
|
||||
lastfile = file;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue