Harvey-OS / harvey

A distributed operating system
https://harvey-os.org/
MIT License
1.44k stars 105 forks source link

Simplify 4c mkfile - move 4c/lex.c changes to cc/lex.c #1202

Closed gmacd closed 2 years ago

gmacd commented 2 years ago

4c/lex.c is near identical to cc/lex.c, but misses a couple of recent fixes, and has a little 4c-specific code (mips64).

cc/lex.c already has some vc-specific code in it (mips32), so we can get rid of 4c/lex/c by moving that code to cc/lex.c

The reason to do this is to make 4c easier to build on linux (due to the hack to use 4c/lex.c instead of cc/lex.c when building).

Signed-off-by: Graham MacDonald grahamamacdonald@gmail.com

rminnich commented 2 years ago

you'll need to rebase this and then confirm that you tested it with build-usb.bash, earlier removals broke native building and I had to revert them