From 7469b79aa8561288e8eeddc1a1b7606e7f47f51e Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 11 Oct 2025 12:23:33 +0900 Subject: [PATCH] mruby-task: link with winmm library on windows windows multimedia timer api requires linking with winmm.lib. added conditional linker library using spec.for_windows? to match mruby build system conventions. Co-authored-by: Claude --- mrbgems/mruby-task/mrbgem.rake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mrbgems/mruby-task/mrbgem.rake b/mrbgems/mruby-task/mrbgem.rake index 1a7085be1..8c9189878 100644 --- a/mrbgems/mruby-task/mrbgem.rake +++ b/mrbgems/mruby-task/mrbgem.rake @@ -6,5 +6,10 @@ MRuby::Gem::Specification.new('mruby-task') do |spec| # Enable task scheduler globally (required for vm.c integration) spec.build.defines << 'MRB_USE_TASK_SCHEDULER' + # Windows: link with multimedia timer library + if spec.for_windows? + spec.linker.libraries << 'winmm' + end + spec.add_dependency 'mruby-fiber' # Uses same context infrastructure end