summaryrefslogtreecommitdiff
path: root/mjit_worker.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-14 05:50:13 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-14 05:50:13 +0000
commitd89d1d468779ccea52d9b8da4f9d967543d28723 (patch)
treea7aa694527d03197b1bc38a10339374f2d70121f /mjit_worker.c
parentb4bc6ccb4ebf8be89ae0a7fa5f7e764a1cefac86 (diff)
mjit_worker.c: untangle CC_LIBS nesting
This should have no impact. The CC_LIBS was too hard to read for human. I don't remember whether the order of -lmsvcrt and -lgcc matters or not, but I kept that for the best safety. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit_worker.c')
-rw-r--r--mjit_worker.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mjit_worker.c b/mjit_worker.c
index 9faeb100d8..b69fe1e1bf 100644
--- a/mjit_worker.c
+++ b/mjit_worker.c
@@ -268,14 +268,14 @@ static const char *const CC_DLDFLAGS_ARGS[] = {
};
static const char *const CC_LIBS[] = {
-#if defined(_WIN32) || defined(__CYGWIN__)
+#if defined(_WIN32) || defined(__CYGWIN__) // mswin, mingw, cygwin
MJIT_LIBS
-# if defined __GNUC__ && !defined __clang__
-# if defined(_WIN32)
+#endif
+#if defined(_WIN32) && defined __GNUC__ && !defined __clang__ // mingw
"-lmsvcrt",
-# endif
+#endif
+#if (defined(_WIN32) || defined(__CYGWIN__)) && defined __GNUC__ && !defined __clang__ // mingw, cygwin
"-lgcc",
-# endif
#endif
NULL
};