ruby-changes:50112
From: k0kubun <ko1@a...>
Date: Mon, 5 Feb 2018 21:57:29 +0900 (JST)
Subject: [ruby-changes:50112] k0kubun:r62230 (trunk): mjit.c: prefer using --jit-cc=clang if __clang__
k0kubun 2018-02-05 21:57:24 +0900 (Mon, 05 Feb 2018) New Revision: 62230 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62230 Log: mjit.c: prefer using --jit-cc=clang if __clang__ is defined. This is basically for OpenBSD. Failure on using the compiler which is not used for Ruby compilation is not supported. [Bug #14440] Modified files: trunk/mjit.c Index: mjit.c =================================================================== --- mjit.c (revision 62229) +++ mjit.c (revision 62230) @@ -1125,7 +1125,7 @@ mjit_init(struct mjit_options *opts) https://github.com/ruby/ruby/blob/trunk/mjit.c#L1125 mjit_opts.max_cache_size = MIN_CACHE_SIZE; if (mjit_opts.cc == MJIT_CC_DEFAULT) { -#if defined(__MACH__) +#if defined(__clang__) mjit_opts.cc = MJIT_CC_CLANG; verbose(2, "MJIT: CC defaults to clang"); #else -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/