diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-12 03:39:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-12 03:39:18 +0000 |
commit | 9dc2d2855ec6196e97e9693c25e9833b7a117284 (patch) | |
tree | 9e8de0f046c3dca43e812b7fa294eea55dcd8a52 /ruby.c | |
parent | 30bcbfd339d0b7176cc00a044d4682a300510ff3 (diff) |
no --jit-cc
* ruby.c (setup_mjit_options): removed --jit-cc option, since
mjit header is affected by generated config.h which depends on
the given compiler, so it cannot work with different compilers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -270,7 +270,6 @@ usage(const char *name, int help) M("frozen-string-literal", "", "freeze all string literals (default: disabled)"), }; static const struct message mjit_options[] = { - M("--jit-cc=cc", "", "C compiler to generate native code (gcc, clang)"), M("--jit-warnings", "", "Enable printing MJIT warnings"), M("--jit-debug", "", "Enable MJIT debugging (very slow)"), M("--jit-wait", "", "Wait until JIT compilation is finished everytime (for testing)"), @@ -912,28 +911,11 @@ set_option_encoding_once(const char *type, VALUE *name, const char *e, long elen #define set_source_encoding_once(opt, e, elen) \ set_option_encoding_once("source", &(opt)->src.enc.name, (e), (elen)) -static enum rb_mjit_cc -parse_mjit_cc(const char *s) -{ - if (strcmp(s, "gcc") == 0) { - return MJIT_CC_GCC; - } - else if (strcmp(s, "clang") == 0) { - return MJIT_CC_CLANG; - } - else { - rb_raise(rb_eRuntimeError, "invalid C compiler `%s' (available C compilers: gcc, clang)", s); - } -} - static void setup_mjit_options(const char *s, struct mjit_options *mjit_opt) { mjit_opt->on = 1; if (*s == 0) return; - if (strncmp(s, "-cc=", 4) == 0) { - mjit_opt->cc = parse_mjit_cc(s + 4); - } else if (strcmp(s, "-warnings") == 0) { mjit_opt->warnings = 1; } |