I've been trying to make & run the test-wcc in WSL.
Apart from some shell script adjustments, most of the tests seem to run okay, but there seems to be an odd problem with line ending handling in the compiler.
When I check out all files with CRLF (Windows) line endings, which is default behaviour, and make test-wcc, I get some odd preprocessor errors:
Furthermore, the line numbers ((29)) seem to be wrong.
I suspected this to be a bug in the compiler with line ending handling. So I checked out all files with LF (Unix) line endings, and all tests passed.
This seems to confirm that that some of compiler (e.g. the multi-line preprocessor code) makes an assumption about the line endings being LF despite that both CRLF and LF are possible depending on platform. This leads to wrong line numbers and incorrectly parsed preprocessors.
I've been trying to make & run the
test-wcc
in WSL.Apart from some shell script adjustments, most of the tests seem to run okay, but there seems to be an odd problem with line ending handling in the compiler.
When I check out all files with CRLF (Windows) line endings, which is default behaviour, and
make test-wcc
, I get some odd preprocessor errors:Furthermore, the line numbers (
(29)
) seem to be wrong.I suspected this to be a bug in the compiler with line ending handling. So I checked out all files with LF (Unix) line endings, and all tests passed.
This seems to confirm that that some of compiler (e.g. the multi-line preprocessor code) makes an assumption about the line endings being LF despite that both CRLF and LF are possible depending on platform. This leads to wrong line numbers and incorrectly parsed preprocessors.