larmel / lacc

A simple, self-hosting C compiler
MIT License
887 stars 64 forks source link

Self-host build fails #9

Closed ibara closed 6 years ago

ibara commented 6 years ago

Hi --

Very trivial diff, not really worth a pull request. Self-host build fails because dwarf.c is missing an #include and generates this message: (src/backend/x86_64/dwarf.c, 108) error: Undefined symbol 'va_list'.

While here, change Makefile -std= to -std=c99, since lacc now defaults to that. fixes.txt

larmel commented 6 years ago

Thanks, I pushed a fix with the missing include now. I don't want to change to c99 mode while compiling lacc though, at least not yet. It is intentionally written in c89 for maximum portability.

ibara commented 6 years ago

No worries! Sounds good, thanks.