New Issue: [Bug]: 'mason build --example --release' does not result in rebuild

28804, "jabraham17", "[Bug]: 'mason build --example --release' does not result in rebuild", "2026-05-12T21:57:20Z"

Today on main, examples can be built in either debug mode or release mode (just like packages)

mason build --example
mason build --example --release

However, unlike packages, these builds are to the same file. mason build writes the output to target/debug/myProjectName and target/release/myProjectName, but mason build --example always builds to target/example/myExampleName.

Because of this (and because the --release flag is not taken into account for the fingerprint), if a project is first built as mason build --example, a subsequent mason build --example --release will be skipped since there are no project changes.

This should be fixed. We can either include --release in the fingerprint for examples, or use different directories for release and debug example builds