ice-demos icon indicating copy to clipboard operation
ice-demos copied to clipboard

Swift demo's rebuild when using multiple terminals

Open externl opened this issue 6 months ago • 1 comments

Select a demo. In terminal A run swift build. When finished, run swift build in terminal B.

Swift will rebuild the demo.

externl avatar May 23 '25 17:05 externl

Seems this is an expected Swift behavior. Swift caches the environment and compares the hashes between runs. If you have env vars that change between terminal sessions, this can cause a rebuild.

https://forums.swift.org/t/building-non-ui-programs-e-g-command-line-tools-servers-etc/71368

externl avatar May 23 '25 17:05 externl