summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-10 06:22:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-10 06:22:38 +0000
commitf6ca5edf3e3968a867faf82d763ffca45cf4483d (patch)
treebc02d60dab7bb45ffffb888eff516ff53eb435ef /win32
parent61f26a1bf90277ee91b90ddecfbf64e94bc14b98 (diff)
mjit_config.h
* Makefie.in, win32/Makefile.sub: make mjit_config.h from configured variables, including necessary options, e.g., `-m32` for 32bit binary on 64bit platform. * mjit.c: always use configured CC command. as config.h depends on the compiler, different compilers cannot work. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.sub10
1 files changed, 10 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 0f177a2b21..82f039a7b9 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -1234,3 +1234,13 @@ loadpath: verconf.h
@$(CPP) $(XCFLAGS) $(CPPFLAGS) $(srcdir)/loadpath.c | \
sed -e '1,/^const char ruby_initial_load_paths/d;/;/,$$d' \
-e '/^^ /!d;s/ *"\\\\0"$$//;s/" *"//g'
+
+mjit_config.h:
+ @$(ECHO) making <<$@
+#ifndef RUBY_MJIT_CONFIG_H
+#define RUBY_MJIT_CONFIG_H 1
+<<KEEP
+ @(set sep=#define MJIT_CC ) & \
+ for %I in ($(CC)) do @(call echo.%%sep%%"%%~I" \& set sep= ,) >> $@
+ $(Q)echo /* MJIT_CC */>> $@
+ $(Q)echo #endif /* RUBY_MJIT_CONFIG_H */ >> $@