-
Notifications
You must be signed in to change notification settings - Fork 55
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
mccode-antlr: Add mccode_config / m[c,x]run entry for MCCOGEN #1749
mccode-antlr: Add mccode_config / m[c,x]run entry for MCCOGEN #1749
Conversation
…e.g. mcstas-antlr as code generator
@g5t a couple of potential integration-improvements to do in
|
@g5t the commit in the "parked" part of the comp lib is in fact related, since mcstas-antlr picked up a stale version of the union
I would think/guess this all together makes "all" current McStas instruments function with the |
@g5t as discussed in the hallway, passing a But adding a number of separate entries did work: Also, this makes Union + Crystal function, as expected
|
@g5t I have been testing a bit and think I will simply deem this as "functional" and merge |
These few edits allow the use of a non-standard code-generator, e.g. mcstas-antlr, via the new config item
MCCOGEN
. By default this entry assumes the same value asMCCODE
, i.e. the build-time@FLAVOR@
.By following the steps
pip install mccode-antlr --upgrade
ln -s /path/to/mcstas-antlr/ /path/to/mcstas-install/bin/mcstas-antlr
the antlr-based
mcstas-antlr
from @g5t can be usedThe second step may be required on some systems, since m[c,x]run (for the sake of not "mixing" parallel mccode installations) assume that the code generator is located in the mccode
bin
folder