How to know this binary was built with --release or not from crystal code?

How to know this binary was built with --release or not from crystal code?

Thanks

https://crystal-lang.org/reference/1.10/syntax_and_semantics/compile_time_flags.html#compiler-options

You can determine this via a macro checking for the release flag.

It works, thanks!

{% if flag?(:release) %}
  BakedFileSystemStorage.mount
{% end %}