summaryrefslogtreecommitdiff
path: root/mjit.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-11 07:10:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-11 07:10:37 +0000
commitfa6e29175b1c7416fdb606e9cf61395bd3a1cb6a (patch)
tree40f28f89b5b2d72435025bf16a7f828b9920dfb6 /mjit.c
parentb818f7c34952693100125129249a0cda1f02e81b (diff)
mjit_config.h: include trailing comma for empty list
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/mjit.c b/mjit.c
index cb1cad0e9e..3152a427b0 100644
--- a/mjit.c
+++ b/mjit.c
@@ -561,9 +561,6 @@ free_list(struct rb_mjit_unit_list *list)
}
#include "mjit_config.h"
-#ifndef MJIT_CC
-#define MJIT_CC "cc"
-#endif
/* XXX_COMMONN_ARGS define the command line arguments of XXX C
compiler used by MJIT.
@@ -573,11 +570,11 @@ free_list(struct rb_mjit_unit_list *list)
XXX_USE_PCH_ARAGS define additional options to use the precomiled
header. */
-static const char *const CC_DEBUG_ARGS[] = {MJIT_DEBUGFLAGS, NULL};
-static const char *const CC_OPTIMIZE_ARGS[] = {MJIT_OPTFLAGS, NULL};
+static const char *const CC_DEBUG_ARGS[] = {MJIT_DEBUGFLAGS NULL};
+static const char *const CC_OPTIMIZE_ARGS[] = {MJIT_OPTFLAGS NULL};
static const char *const CC_COMMON_ARGS[] = {
- MJIT_CC_COMMON, MJIT_CFLAGS,
+ MJIT_CC_COMMON MJIT_CFLAGS
#if defined __GNUC__ && !defined __clang__
"-Wfatal-errors", "-fPIC", "-shared", "-w",
"-pipe", "-nostartfiles", "-nodefaultlibs", "-nostdlib",
@@ -585,11 +582,8 @@ static const char *const CC_COMMON_ARGS[] = {
NULL
};
-static const char *const CC_LDSHARED_ARGS[] = {MJIT_LDSHARED, NULL};
-static const char *const CC_DLDFLAGS_ARGS[] = {
- MJIT_DLDFLAGS,
- NULL
-};
+static const char *const CC_LDSHARED_ARGS[] = {MJIT_LDSHARED NULL};
+static const char *const CC_DLDFLAGS_ARGS[] = {MJIT_DLDFLAGS NULL};
#ifdef __clang__
static const char GCC_USE_PCH_ARGS[] = "-include-pch";