NG compilation switches

BlitzMax Forums/Brucey's Modules/NG compilation switches

col(Posted 2016) [#1]
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!!


Brucey(Posted 2016) [#2]
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


Brucey(Posted 2016) [#3]
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.


col(Posted 2016) [#4]
Thanks for highlighting the correct file with the options. Yes, 'bmxng' was the one I thinking of, it was obvious really eh :D

Cheers!


Derron(Posted 2016) [#5]
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


col(Posted 2016) [#6]
Thanks Derron, compiler switches as a proper expression is a nice touch.