NG compilation switches
BlitzMax Forums/Brucey's Modules/NG compilation switches
| ||
Hiya, Is there a central list of all possible compilation switches? Also is there a one single switch to allow for all configurations but for NG only? Thanks!! |
| ||
You mean like ?bmxng ? The list that bcc handles can be found around here : https://github.com/bmx-ng/bcc/blob/master/parser.bmx#L3749 |
| ||
It would be nice to have a more dynamic capability, but depending on how you implement it you lose build compatibility with the legacy compiler. |
| ||
Thanks for highlighting the correct file with the options. Yes, 'bmxng' was the one I thinking of, it was obvious really eh :D Cheers! |
| ||
List of switches in textform Regarding the dynamic capability: if you ignore vanilla compatibility, NG allows for a more complex evaluation of conditionals: ?bmxng and android ?bmxng and (android and not androidarmeabiv7a) ... vanilla does not allow such a concatenation of conditions BUT ... you can keep compatibility if you create multiple external files: ?bmxng import "yourfile.bmxng.bmx" ?not bmxng import "yourfile.bmxvanilla.bmx" ? within the *bmxng.bmx you could do your "ng only" things, while the vanilla one does not know about additional things like android targets. bye Ron |
| ||
Thanks Derron, compiler switches as a proper expression is a nice touch. |