Граф коммитов

203 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 2f7d2662dd
Control non-parallel parts with `.WAIT` if available 2022-11-13 23:54:43 +09:00
Nobuyoshi Nakada 66529eef88
Force to update revision.h when commits differ 2022-11-13 17:38:44 +09:00
Takashi Kokubun 39f91bc24b
Always generate non-empty revision.h
Non-GNU make seems to generate empty revision.h, but it doesn't make
sense since https://github.com/ruby/ruby/pull/6382.

Also the $(HAVE_BASERUBY:yes=tmp) hack doesn't seem to be working on
OpenBSD. I'll remove it to focus on fixing RubyCI first, and then deal
with baseruby-missing environments. At least a snapshot should have
revision.h and it might work fine though.
2022-09-17 23:44:14 +09:00
Nobuyoshi Nakada 9205b8c801 Revert "defs/gmake.mk: no _FORTIFY_SOURCE unless optimization"
This reverts commit b8c376cb9d, as it
seems no longer needed probably.
2022-09-12 07:47:45 +09:00
Nobuyoshi Nakada 22542a6fb0
SCRIPTBINDIR is ok if it just exists [ci skip] 2022-08-31 15:31:48 +09:00
Nobuyoshi Nakada dc66f7246a
Scripts under libexec may not be considered to be placed in bin 2022-08-31 15:31:48 +09:00
Hiroshi SHIBATA d0b17a4d20
Adjust space-width for help message 2022-08-22 12:23:38 +09:00
Nobuyoshi Nakada fbaa2f0b3b
Suppress detached head warnings [ci skip]
Check out the revisions for testing as "detached" from the beginning.
2022-08-18 11:05:34 +09:00
Nobuyoshi Nakada 2f0d9e74c8 Get rid of `-C` option for very old `git` 2022-08-05 20:46:53 +09:00
Nobuyoshi Nakada 73f0573cb3
Ignore revision to test unless HAVE_GIT 2022-08-05 09:55:49 +09:00
Nobuyoshi Nakada 8fae120912
Clone upstream gem repositories for test 2022-08-05 09:53:18 +09:00
Nobuyoshi Nakada 661536ab16
Copy from cloned gem sources in parallel 2022-08-05 09:52:12 +09:00
Nobuyoshi Nakada 44a0a66559
Move to tool/lib/bundled_gem.rb 2022-08-05 09:44:18 +09:00
Nobuyoshi Nakada 6a8f1a9e5c
Copy from bundled gem source for test 2022-08-05 09:44:18 +09:00
Nobuyoshi Nakada 87d8d25796
Use configured GIT 2022-08-05 09:39:47 +09:00
Nobuyoshi Nakada 64cff78005 `Gem.unpack` extracts gems so able to execute
Creates simple bin stubs to load the extracted executable files.
After only extracted under `gems` directory, the gems are considered
installed but the executable scripts are not found.
Also the second argument is now the parent of the previous second and
third arguments.
2022-07-17 19:57:48 +09:00
Nobuyoshi Nakada d4f5c01262
Set `SDKROOT` to empty value [ci skip]
So `RbConfig::CONFIG["includedir"]` does not start with double slash.
2022-07-06 00:32:26 +09:00
Nobuyoshi Nakada 6ba52647c3
mac: Remove debug option fro MJIT_DEBUGFLAGS
Not to generate .dSYM directories by MJIT runs, which are left in
large numbers after each test.
2022-06-27 17:38:07 +09:00
Nobuyoshi Nakada 689b5ae752
Split YJIT rules for CODEOWNERS 2022-06-02 10:12:34 +09:00
Nobuyoshi Nakada 7d9da4c33d
Use `$(CHDIR)` so works with symlink [ci skip] 2022-05-27 09:56:01 +09:00
Nobuyoshi Nakada be26f40682
Revert "Stop rebuilding miniruby always [ci skip]"
This reverts commit 2f5edfa47d.
2022-05-27 09:54:45 +09:00
Nobuyoshi Nakada 2f5edfa47d
Stop rebuilding miniruby always [ci skip] 2022-05-26 15:26:33 +09:00
Alan Wu f90549cd38 Rust YJIT
In December 2021, we opened an [issue] to solicit feedback regarding the
porting of the YJIT codebase from C99 to Rust. There were some
reservations, but this project was given the go ahead by Ruby core
developers and Matz. Since then, we have successfully completed the port
of YJIT to Rust.

The new Rust version of YJIT has reached parity with the C version, in
that it passes all the CRuby tests, is able to run all of the YJIT
benchmarks, and performs similarly to the C version (because it works
the same way and largely generates the same machine code). We've even
incorporated some design improvements, such as a more fine-grained
constant invalidation mechanism which we expect will make a big
difference in Ruby on Rails applications.

Because we want to be careful, YJIT is guarded behind a configure
option:

```shell
./configure --enable-yjit # Build YJIT in release mode
./configure --enable-yjit=dev # Build YJIT in dev/debug mode
```

By default, YJIT does not get compiled and cargo/rustc is not required.
If YJIT is built in dev mode, then `cargo` is used to fetch development
dependencies, but when building in release, `cargo` is not required,
only `rustc`. At the moment YJIT requires Rust 1.60.0 or newer.

The YJIT command-line options remain mostly unchanged, and more details
about the build process are documented in `doc/yjit/yjit.md`.

The CI tests have been updated and do not take any more resources than
before.

The development history of the Rust port is available at the following
commit for interested parties:
1fd9573d8b

Our hope is that Rust YJIT will be compiled and included as a part of
system packages and compiled binaries of the Ruby 3.2 release. We do not
anticipate any major problems as Rust is well supported on every
platform which YJIT supports, but to make sure that this process works
smoothly, we would like to reach out to those who take care of building
systems packages before the 3.2 release is shipped and resolve any
issues that may come up.

[issue]: https://bugs.ruby-lang.org/issues/18481

Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
Co-authored-by: Noah Gibbs <the.codefolio.guy@gmail.com>
Co-authored-by: Kevin Newton <kddnewton@gmail.com>
2022-04-27 11:00:22 -04:00
Nobuyoshi Nakada bb0a22a8c0 Obey spec file locations to rubygems 2022-04-07 09:47:10 +09:00
Nobuyoshi Nakada abfd859b13
Remove github and git related files from extracted bundled gems 2022-03-31 10:49:55 +09:00
Nobuyoshi Nakada abc4a46046
Get rid of building main again when test-bundled-gems 2022-01-14 14:54:29 +09:00
Nobuyoshi Nakada 071653ecd7
Run the prerequisites of test-bundled-gems in order 2022-01-02 02:04:05 +09:00
Nobuyoshi Nakada 4a6ca12904
Remove unversioned phony target for pkgconfig file [Bug #18374]
It results in a circular dependency when `--with-ruby-pc=ruby.pc`
is given.  [ci skip]
2021-12-04 16:20:30 +09:00
Nobuyoshi Nakada a4964174e2
Fix circular dependencies specific to in-place build [Bug #18374]
* Move the rubyspec running recipe after the rule for rubyspec
  C-API extension library, so that separate dummy recipe is not
  needed.

* Add a dummy recipe for rubyspec.h before the rubyspec running
  recipe, so that the dependency of extensions do not fire the
  latter.
2021-12-04 10:40:15 +09:00
Nobuyoshi Nakada a7d0c2c448
Needs to update revision.h unless existing [ci skip] 2021-12-02 12:28:49 +09:00
Nobuyoshi Nakada 179aa26f4f
Prune stale worktrees before checking out a new pull request [ci skip] 2021-10-28 13:14:31 +09:00
Nobuyoshi Nakada be9cc6c758
Fix rubyspec_capiext dependency and flags
- The file needed to link may be the import library.
- Remove duplicate flags.
2021-08-30 12:03:44 +09:00
Nobuyoshi Nakada 9227989343
Use proper suffix 2021-08-30 00:18:16 +09:00
Yuta Saito 01be881f35 Use `empty` instead of NOOP in mk file to make it safer
This would avoid unintentional use of the `NOOP` environment variable

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2021-08-25 18:47:44 +09:00
Yuta Saito d1f0d1ca2e Fix build failure on macOS with --enable-shared
./spec/ruby/optional/capi/ext/array_spec.c can match with spec/%/ if
using GNU Make under version 3.81. make command installed on macOS is
3.81, so ruby can't be built with default make on macOS with
  --enable-shared option since bda56a03a6
2021-08-25 18:47:44 +09:00
Nobuyoshi Nakada 2e49e4330d
Disable debug flag for executable files when LTO [ci skip]
Get rid of tons of linker warnings that it could not find object
file symbol for every symbols, when targeting darwin.
2021-08-14 23:22:04 +09:00
Nobuyoshi Nakada e3dcb6204d
Run only directories or *_spec.rb files only by mspec [Bug #18072]
Not to match *.c files under spec/ruby/optional/capi/ext, in the
case of in-place build.
2021-08-10 14:22:44 +09:00
Nobuyoshi Nakada 6e60fc2945
Group commands on GitHub Actions 2021-08-07 18:32:24 +09:00
Nobuyoshi Nakada d868c8f08f
Make jobserver available 2021-08-06 20:58:13 +09:00
Nobuyoshi Nakada bda56a03a6
Build rubyspec CAPI extensions 2021-08-05 22:30:48 +09:00
Nobuyoshi Nakada 9edad0df74
Remove short options with argument [Bug #17870]
Remove GNU make `-O` and `-W` options which are short but followed
by an argument, so that `$mflags.set?(?n)` does not return `true`
wrongly.
2021-05-21 10:34:28 +09:00
Nobuyoshi Nakada 68a6f6c4ab
mac: ignore SDKROOT at installation 2021-04-10 11:57:45 +09:00
Nobuyoshi Nakada 44f038bd7f
gmake.mk: renamed BUNDLED_GEMS as bundled-gems
Hyphenated names are safe in GNU make.
2020-12-02 17:04:33 +09:00
Nobuyoshi Nakada 75d48a533d
rubyspec-capiext: Use plain DLDFLAGS without flags for libruby 2020-11-22 19:09:58 +09:00
Nobuyoshi Nakada ece917bab3
Added rubyspec-capiext target
This target builds extensions for rubyspec optional C-API tests.
2020-11-21 23:17:48 +09:00
Nobuyoshi Nakada a9ff390870
Fixed installation failure [Bug #17191]
Try update and extract bundled gems only when baseruby is
available.  It should be done only when installing from
developemental build and not from the tarball, but it is not
obvious to differentiate them.
2020-09-29 13:41:59 +09:00
Nobuyoshi Nakada 4ea57c2a39
Escape `#` for GNU make 3 2020-07-05 19:15:03 +09:00
Nobuyoshi Nakada 358f91bf6f
Skip comment and empty lines in gems/bundled_gems file 2020-07-05 18:59:06 +09:00
Nobuyoshi Nakada 6fdd5e26c6
Removed duplicate target
While `spec/bundler` and `spec/bundler/` are treated different
targets by GNU make 4, the same target by GNU make 3.  The latter
target, ending with a slash, was to run `test-bundler-parallel`,
instead of `spec/bundler/%`.
2020-06-25 18:21:41 +09:00
Nobuyoshi Nakada 96d184aa49
Run spec/bundler without a sub-make 2020-06-10 23:30:13 +09:00