mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
f22a991065
When `conf.ports` was given multiple names, every matching ports/ directory for each gem was compiled -- fine for single-name builds and for gems that have at most one matching port, but a footgun once HAL-using gems start providing multiple alternative ports (e.g. mruby-task with both posix and an alternative runloop). Iterate the chain and break on the first match. Existing builds that pass at most one name per gem keep the same behavior; `conf.ports :rp2040, :posix` now reads as "use rp2040 if a gem has that port, otherwise posix" rather than "compile both". ref #6825 Co-authored-by: Claude <noreply@anthropic.com>