How can I find the supported DAML-LF target versions for the compiler?

I know how to set the target version in daml.yaml:

build-options:
  - --target=1.6

But how can I find out which versions are supported by the compiler for my SDK version?

1 Like

I don’t think there is an easy way atm sadly. We originally hid --target from daml build --help since it was intended as an internal implementation detail but we should probably reconsider that.

In the meantime, the easiest option might be to look at the source code, e.g., daml/Version.hs at 1c18058f019229cd0af64669af0de31d0cec916d · digital-asset/daml · GitHub for SDK 1.2.0.

1 Like

In case you might want to check other versions, note that you don’t have to hunt for the commit SHA for each; you can use the version tag directly in the URL: