Skip to content
Discussion options

You must be logged in to vote

Your && line works from just 1.53.0 if you turn on unstable lists:

set unstable
set lists

umk_exe := if os_family() == "unix" && os() != "macos" { "umk.out" } else { "umk" }

On 1.43.0 that parse fails because && is not boolean and in if. Stay on nested ifs, which are stable and still the right approach if you do not want set lists:

umk_exe := if os_family() == "unix" {
  if os() != "macos" { "umk.out" } else { "umk" }
} else {
  "umk"
}

set lists is unstable, so this && form can still change.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by casey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants