mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
mjit.c: constified command arguments
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1a873c6a70
commit
a16e93fb9e
1 changed files with 8 additions and 8 deletions
16
mjit.c
16
mjit.c
|
@ -573,10 +573,10 @@ free_list(struct rb_mjit_unit_list *list)
|
||||||
|
|
||||||
XXX_USE_PCH_ARAGS define additional options to use the precomiled
|
XXX_USE_PCH_ARAGS define additional options to use the precomiled
|
||||||
header. */
|
header. */
|
||||||
static const char *GCC_DEBUG_ARGS[] = {"-O0", "-g", NULL};
|
static const char *const GCC_DEBUG_ARGS[] = {"-O0", "-g", NULL};
|
||||||
static const char *GCC_OPTIMIZE_ARGS[] = {"-O2", NULL};
|
static const char *const GCC_OPTIMIZE_ARGS[] = {"-O2", NULL};
|
||||||
|
|
||||||
static const char *GCC_COMMON_ARGS[] = {
|
static const char *const GCC_COMMON_ARGS[] = {
|
||||||
MJIT_CC,
|
MJIT_CC,
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
# ifdef __MACH__
|
# ifdef __MACH__
|
||||||
|
@ -592,7 +592,7 @@ static const char *GCC_COMMON_ARGS[] = {
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *GCC_LDSHARED_ARGS[] = {
|
static const char *const GCC_LDSHARED_ARGS[] = {
|
||||||
"-Wl,-undefined", "-Wl,dynamic_lookup",
|
"-Wl,-undefined", "-Wl,dynamic_lookup",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
@ -605,7 +605,7 @@ static const char GCC_USE_PCH_ARGS[] =
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
|
|
||||||
static const char *GCC_EMIT_PCH_ARGS[] = {
|
static const char *const GCC_EMIT_PCH_ARGS[] = {
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
"-emit-pch",
|
"-emit-pch",
|
||||||
#endif
|
#endif
|
||||||
|
@ -613,9 +613,9 @@ static const char *GCC_EMIT_PCH_ARGS[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
static const char *VC_COMMON_ARGS[] = {MJIT_CC, "-MD", "-LD", NULL};
|
static const char *const VC_COMMON_ARGS[] = {MJIT_CC, "-MD", "-LD", NULL};
|
||||||
static const char *VC_DEBUG_ARGS[] = {"-O0", "-Zi", NULL};
|
static const char *const VC_DEBUG_ARGS[] = {"-O0", "-Zi", NULL};
|
||||||
static const char *VC_OPTIMIZE_ARGS[] = {
|
static const char *const VC_OPTIMIZE_ARGS[] = {
|
||||||
# if _MSC_VER < 1400
|
# if _MSC_VER < 1400
|
||||||
"-O2b2xg-",
|
"-O2b2xg-",
|
||||||
# else
|
# else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue