-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated test application (blechc -app) includes the blech program as .c file #12
Comments
It is not a bug, it is a feature which, however, confuses even those who introduced it years ago ;-) |
Can't remember the reason. Can you elaborate on this |
Before pushing to master, did you check all the code gen tests? With your commit all of them should be broken, if I remember correctly |
The test program and the blech.c are tightly coupled so instead of including the header and compiling to C files, we directly include the code and you only need to compile the test program. Additionally compiling the blech.c is what raised the warnings. |
Created a branch for this. The issue creates problems when compiling the C code to WebAssembly. I will look into the code generation tests, before I do a pull request |
Ah sorry, did not see the new branch when I clicked on the commit |
The Blech compiler automatically generates a test program -
blech.c
by default - with the following command lineCompiling all generated C-files generates duplicate symbol warnings.
Reason: The EntryPoint file
control.c
is included as acontrol.c
instead ofcontrol.h
into
blech.c
.I am on it.
The text was updated successfully, but these errors were encountered: