-
Notifications
You must be signed in to change notification settings - Fork 46
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
Issues with defined macros in bsvpreprocessor.py #115
Comments
I would highly recommend that you not pass this file in 'BSVFILES=xxx', Instead, add '--bsvpath' to CONNECTALFLAGS so that bsc can locate the file Sorry, but the preprocessor handling is pretty primitive... On Mon, May 9, 2016 at 5:30 PM, Andy Wright [email protected]
|
I would highly recommend that you not pass this file in 'BSVFILES=xxx', since the macro is not directly used in an interface definition (which is all the preprocessor is trying to handle). Instead, add '--bsvpath' to CONNECTALFLAGS so that bsc can locate the file from an 'import' statement. Sorry, but the preprocessor handling is pretty primitive... |
It wasn't in BSVFILES. Actually the file causing the problem was just some file in --bsvpath that wasn't being used anywhere so I deleted it. I do have some other code that looks similar, and I may run into similar problems with it later, but for now I'm just getting c++ compile errors (tons of them because I'm in the middle of refactoring all of our c++ code). |
Right now, the following is not supported in connectal/scripts/bsvpreprocess.py (code from lib/BSVSource/Contexts/Contexts.defines within the Bluespec installation directory):
The current error produced by bsvpreprocessor.py is that there is an unhandled preprocessor token on line 3 (but that `` is just for concatenation after substitution).
I took a look at the code, and it looks like it doesn't support macros with arguments. In addition to that, it looks like it is only taking the next token after the macro as its definition, but I believe that it should take the rest of the line as the definition.
The text was updated successfully, but these errors were encountered: