aboutsummaryrefslogtreecommitdiffstats
path: root/win32/Makefile.sub
diff options
context:
space:
mode:
authorYuta Saito <kateinoigakukun@gmail.com>2021-10-28 15:51:40 +0900
committerYusuke Endoh <mame@ruby-lang.org>2021-10-30 10:18:33 +0900
commit8590d61ea9b6b91c89a14a8d0f6829c8a3a8c6c8 (patch)
tree52b07a13002406e41bc9f22c11614387650b952d /win32/Makefile.sub
parentccda26efe7c6acf7edd1262dd2826b8c7008ff75 (diff)
downloadruby-8590d61ea9b6b91c89a14a8d0f6829c8a3a8c6c8.tar.gz
Select including thread impl file at config time
Diffstat (limited to 'win32/Makefile.sub')
-rw-r--r--win32/Makefile.sub4
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 2aef63985b..ce8cafe807 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -414,6 +414,8 @@ LIBRUBYARG_SHARED = $(LIBRUBY)
LIBRUBY_RELATIVE = yes
THREAD_MODEL = win32
+THREAD_IMPL_H = thread_$(THREAD_MODEL).h
+THREAD_IMPL_SRC = thread_$(THREAD_MODEL).c
!if "$(CROSS_COMPILING)" == "yes"
PREP = $(arch)-fake.rb
@@ -873,6 +875,8 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
#define STACK_GROW_DIRECTION -1
!endif
#define COROUTINE_H "$(COROUTINE_H)"
+#define THREAD_IMPL_H "$(THREAD_IMPL_H)"
+#define THREAD_IMPL_SRC "$(THREAD_IMPL_SRC)"
#define LOAD_RELATIVE 1
#define DLEXT ".so"
!if "$(libdir_basename)" != "lib"