You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is no easy way to compare in a script against a string value passed by parameter. This would be quite handy though, and there are different ways to tackle this. What this would enable is getting rid of parameters currently used like release, profile or debug, as they could be dependent on the actual build target.
Option 1
One would be adding a comparison operator to the script syntax, that could look like this:
script = "%{target == 'release' 'do this' or 'do that'}"
This would mean introducing a new == operator. BNF would be:
Currently there is no easy way to compare in a script against a string value passed by parameter. This would be quite handy though, and there are different ways to tackle this. What this would enable is getting rid of parameters currently used like
release
,profile
ordebug
, as they could be dependent on the actual build target.Option 1
One would be adding a comparison operator to the script syntax, that could look like this:
This would mean introducing a new
==
operator. BNF would be:Option 2
After implementing #24 there could be a
equal(first, second)
function serving this. This would look like this:The text was updated successfully, but these errors were encountered: