Skip to content

Commit

Permalink
Rule out gcc on Windows
Browse files Browse the repository at this point in the history
It seems the combination fails at the moment.  Don't know exactly
why but I suspect there can be issues in resolving weak references.
Let's rule them out for now.

https://ci.appveyor.com/project/ruby/ruby/builds/27036383/job/x3c5d54839aacoyt
  • Loading branch information
shyouhei committed Aug 29, 2019
1 parent 3df3725 commit e4be2fd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
15 changes: 15 additions & 0 deletions include/ruby/intern.h
Expand Up @@ -1171,4 +1171,19 @@ __attribute__((__unused__,__weakref__("rb_define_singleton_method"),__nonnull__(
#endif
#endif

#ifdef _WIN32
#ifdef rb_define_method_id
#undef rb_define_method_id
#endif
#ifdef rb_define_private_function
#undef rb_define_private_function
#endif
#ifdef rb_define_protected_function
#undef rb_define_protected_function
#endif
#ifdef rb_define_singleton_function
#undef rb_define_singleton_function
#endif
#endif

#endif /* RUBY_INTERN_H */
12 changes: 12 additions & 0 deletions include/ruby/ruby.h
Expand Up @@ -2818,4 +2818,16 @@ __attribute__((__unused__,__weakref__("rb_define_global_function"),__nonnull__(1
#endif
#endif

#ifdef _WIN32
#ifdef rb_define_method
#undef rb_define_method
#endif
#ifdef rb_define_module_function
#undef rb_define_module_function
#endif
#ifdef rb_define_global_function
#undef rb_define_global_function
#endif
#endif

#endif /* RUBY_RUBY_H */

0 comments on commit e4be2fd

Please sign in to comment.