stormalf / chibicc

A small C compiler from rui314
MIT License
6 stars 1 forks source link

ISS-140 compiling chibicc with chibicc tests failed with trying to parse the object.o file instead of linking only #23

Closed stormalf closed 1 year ago

stormalf commented 1 year ago

chibicc -pthread -o test/alignof.exe test/alignof.o -xc test/common test/alignof.o:1: ELF ^ tokenize.c: in tokenize : invalid token

stormalf commented 1 year ago

it seems to be a bug in get_file_type that returns always opt_x even if a filename is an object file ending with .o