ruby-changes:64418
From: Koichi <ko1@a...>
Date: Mon, 21 Dec 2020 23:29:19 +0900 (JST)
Subject: [ruby-changes:64418] 91e2f08a6a (master): export rb_eRactorIsolationError for MJIT
https://git.ruby-lang.org/ruby.git/commit/?id=91e2f08a6a From 91e2f08a6a296acb7debb184ffe1229c5c25bb0c Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Mon, 21 Dec 2020 23:28:05 +0900 Subject: export rb_eRactorIsolationError for MJIT https://ci.appveyor.com/project/ruby/ruby/builds/36942168/job/7ugrpk0pndoly9wp ``` _ruby_mjit_p11920u0.c C:\Users\appveyor\AppData\Local\Temp\1/_ruby_mjit_p11920u0.c(14) : warning C4005: 'GET_SELF' : macro redefinition c:\projects\ruby\vm_insnhelper.h(111) : see previous definition of 'GET_SELF' Creating library C:\Users\appveyor\AppData\Local\Temp\1/_ruby_mjit_p11920u0.lib and object C:\Users\appveyor\AppData\Local\Temp\1/_ruby_mjit_p11920u0.exp _ruby_mjit_p11920u0.obj : error LNK2001: unresolved external symbol rb_eRactorIsolationError C:\Users\appveyor\AppData\Local\Temp\1/_ruby_mjit_p11920u0.so : fatal error LNK1120: 1 unresolved externals ``` diff --git a/vm_core.h b/vm_core.h index 453c84e..304885b 100644 --- a/vm_core.h +++ b/vm_core.h @@ -2010,8 +2010,9 @@ extern void rb_reset_coverages(void); https://github.com/ruby/ruby/blob/trunk/vm_core.h#L2010 void rb_postponed_job_flush(rb_vm_t *vm); -extern VALUE rb_eRactorUnsafeError; // ractor.c -extern VALUE rb_eRactorIsolationError; +// ractor.c +RUBY_EXTERN VALUE rb_eRactorUnsafeError; +RUBY_EXTERN VALUE rb_eRactorIsolationError; RUBY_SYMBOL_EXPORT_END -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/