389 Commits
Author SHA1 Message Date
Nobuyoshi Nakada 72bad339e9 Set target_os for a7577dbfd3 2024-11-20 18:18:52 +09:00
Hiroshi SHIBATA 0a67190735 merge revision(s) ae8990aef0:
Alias init functions

	The extension library has each initialization function named "Init_" +
	basename. If multiple extensions have the same base name (such as
	cgi/escape and erb/escape), the same function will be registered for
	both names.

	To fix this conflict, rename the initialization functions under sub
	directories using using parent names, when statically linking.
	---
	 ext/extmk.rb            | 16 +++++++++++++++-
	 template/extinit.c.tmpl |  2 +-
	 2 files changed, 16 insertions(+), 2 deletions(-)
2024-05-23 14:12:53 +09:00
Nobuyoshi Nakada 7256dfd4a1 [Bug #19751] Remove linemarkers in middle 2024-05-23 12:45:59 +09:00
U.Nakamura 8563a144fd merge revision(s) bcb3247072e6973d0f6b50ca5fed238d5824bd28,fe0225ff4d5af8b1f54009727b39d0d9b821eea3: [Backport #19778]
[Bug #19778] Pass additional include options to INCFLAGS in common.mk

	---
	 common.mk            | 2 +-
	 configure.ac         | 1 +
	 template/Makefile.in | 1 +
	 3 files changed, 3 insertions(+), 1 deletion(-)

	[Bug #19778] Add `-I` options for opt-dir to `$INCFLAGS`

	These options have been separated from `$CFLAGS` already in the
	other places.
	---
	 configure.ac | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)
2023-10-17 20:51:50 +09:00
nagachika e8cb6dae74 merge revision(s) 518301883e:
Fix parallel build on MINGW

	When the build is running with a base ruby then generating `x64-ucrt-ruby320.rc`
	could fail due to a missing dependency to `x64-mingw-ucrt-fake.rb`.
	This commit adds this dependency.

	A failing build looks like so:
	```
	generating x64-mingw-ucrt-fake.rb
	generating x64-ucrt-ruby320.rc
	../snapshot-master/win32/resource.rb:in `require': cannot load such file -- ./x64-mingw-ucrt-fake (LoadError)
	make: *** [GNUmakefile:57: x64-ucrt-ruby320.rc] Error 1
	make: *** Waiting for unfinished jobs....
	linking miniruby.exe
	x64-mingw-ucrt-fake.rb updated
	```
	---
	 cygwin/GNUmakefile.in | 4 ++--
	 template/Makefile.in  | 1 +
	 2 files changed, 3 insertions(+), 2 deletions(-)
2022-10-21 15:20:36 +09:00
nagachika bef621fcab merge revision(s) 6f5305e0d2:
Exclude LIBPATHENV wrapper from PREP

	---
	 common.mk            | 4 ++--
	 configure.ac         | 2 +-
	 template/Makefile.in | 2 ++
	 3 files changed, 5 insertions(+), 3 deletions(-)
2022-10-21 15:19:05 +09:00
nagachika 000cb22414 merge revision(s) bc5b9be1ee:
Move duplicate dependencies

	---
	 common.mk            | 2 ++
	 template/Makefile.in | 5 -----
	 win32/Makefile.sub   | 2 --
	 3 files changed, 2 insertions(+), 7 deletions(-)
2022-10-21 15:18:26 +09:00
nagachika 905a1eb690 merge revision(s) cdfb027213:
Run find in PATH [ci skip]

	---
	 template/Makefile.in | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)
2022-10-21 15:14:15 +09:00
nagachika ad1cc91699 merge revision(s) 0114c72df0:
Clean intermediate files for update-deps [ci skip]

	---
	 template/Makefile.in | 1 +
	 1 file changed, 1 insertion(+)
2022-10-21 15:13:58 +09:00
nagachika c740605d42 merge revision(s) 97ce030954:
Load fake.rb at `BTESTRUBY`

	So that `mkmf` checks work from `make run`, and also remove
	duplicate `$(MINIRUBYOPT)` which is used in `$(MINIRUBY)`.
	---
	 common.mk            | 8 ++++----
	 template/Makefile.in | 3 +--
	 template/fake.rb.in  | 2 ++
	 win32/Makefile.sub   | 2 +-
	 4 files changed, 8 insertions(+), 7 deletions(-)
2022-10-21 15:12:41 +09:00
nagachika ecc6a717a4 merge revision(s) 2d57447ae8:
Fix missing replacement in 1f91dcdab3

	---
	 template/Makefile.in | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)
2022-10-20 23:06:47 +09:00
nagachika 1db6249c66 merge revision(s) 1f91dcdab3:
Define BOOTSTRAPRUBY from HAVE_BASERUBY

	---
	 common.mk            | 1 +
	 configure.ac         | 8 --------
	 template/Makefile.in | 7 +++++--
	 win32/Makefile.sub   | 6 ++++--
	 4 files changed, 10 insertions(+), 12 deletions(-)
2022-10-19 22:20:49 +09:00
nagachika 8e74bfb641 merge revision(s) 7c67d0fd79:
Make sources by BASERUBY if available instead of miniruby

	---
	 common.mk             | 25 +++++++++++++++----------
	 configure.ac          |  6 +++++-
	 cygwin/GNUmakefile.in |  4 ++--
	 template/Makefile.in  |  2 +-
	 win32/Makefile.sub    | 10 ++++++++--
	 5 files changed, 31 insertions(+), 16 deletions(-)
2022-10-18 21:42:37 +09:00
nagachika 5e901758ed merge revision(s) 26054c7461:
Fix paths of exts.mk to clean

	exts.mk files are one level under the top of extension directories.
	---
	 template/exts.mk.tmpl | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)
2022-10-18 21:27:47 +09:00
nagachika b4f8f4ce85 merge revision(s) 77f3f8a1d4:
exts.mk.tmpl: propagate MINIRUBY to enc.mk even though invoking from
	 exts.mk

	This is another attempt to fix out-of-src build with
	--with-static-linked-ext. The first attempt was
	4f1888bda7 but reverted because it broke
	out-of-src build from pre-generated sources via `make dist`.
	This patch fixes the second trans C source gen, mentioned in the
	previous commit message, by passing MINIRUBY as well as when invoking
	from common.mk
	---
	 common.mk             | 2 +-
	 template/exts.mk.tmpl | 2 +-
	 2 files changed, 2 insertions(+), 2 deletions(-)
2022-10-18 21:27:33 +09:00
nagachika e7b557cefe merge revision(s) 32d1ce96e0:
Fix race conditions when cleaning extensions

	Clean built directories by `make distclean`, and then clean leftover
	makefiles for skipped extensions.
	---
	 template/Makefile.in | 4 ++++
	 1 file changed, 4 insertions(+)
2022-10-16 16:46:29 +09:00
nagachika ae6f46db35 merge revision(s) 0c9803b0fd:
The "gems" build directory was rename as ".bundle"

	---
	 common.mk            | 12 ++++++------
	 template/Makefile.in | 10 +++++-----
	 2 files changed, 11 insertions(+), 11 deletions(-)
2022-10-16 16:46:07 +09:00
nagachika 2a0a9d56d4 merge revision(s) 21f006f5f7:
Retrieve previously configured macros also other than `extensions`

	---
	 template/exts.mk.tmpl | 1 -
	 1 file changed, 1 deletion(-)
2022-10-16 16:41:57 +09:00
nagachika 363dc5d131 merge revision(s) 17ce0b9b84:
Retrieve configured gems info

	---
	 template/configure-ext.mk.tmpl | 2 +-
	 template/exts.mk.tmpl          | 4 ++--
	 2 files changed, 3 insertions(+), 3 deletions(-)
2022-10-16 16:31:02 +09:00
nagachika e3abdccca0 merge revision(s) db3d111c1d:
Bundled gems are expanded under `.bundle/gems` now

	---
	 ext/extmk.rb          | 13 +++++++------
	 template/exts.mk.tmpl |  2 +-
	 2 files changed, 8 insertions(+), 7 deletions(-)
2022-10-16 16:29:02 +09:00
Takashi Kokubun 1a63468831 Prepare for removing RubyVM::JIT (#5262) 2021-12-13 23:07:46 -08:00
Takashi Kokubun 11b8aaa26a Rename --jit to --mjit (#5248)
* Rename --jit to --mjit

[Feature #18349]

* Fix a few more --jit references

* Fix MJIT Actions

* More s/jit/mjit/ and re-introduce --disable-jit

* Update NEWS.md

* Fix test_bug_reporter_add
2021-12-13 16:08:01 -08: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
Naohisa Goto a982a1f1e7 Update URL about DTrace static library glommed obj [ci skip]
The old URL
http://mail.opensolaris.org/pipermail/dtrace-discuss/2005-August/000207.html
pointed to the official archive of dtrace-discuss mailing list
in opensolaris.org, disappeared in 2013.
The new URL points to the MARC Mailing list ARChives.
2021-11-17 20:59:48 +09:00
Peter Zhu aeae6e2842 [Feature #18290] Remove all usages of rb_gc_force_recycle
This commit removes usages of rb_gc_force_recycle since it is a burden
to maintain and makes changes to the GC difficult.
2021-11-08 14:05:54 -05:00
Aaron Patterson 41f405c486 Remove the scraper
Now that we're using the jit function entry point, we don't need the
scraper.  Thank you for your service, scraper. ❤️
2021-10-20 18:19:38 -04:00
Aaron Patterson 30f20d7c38 Remove some MicroJIT vestiges
Just happened to run across this, so lets fix them
2021-10-20 18:19:36 -04:00
Jose Narvaez 4e2eb7695e Yet Another Ruby JIT!
Renaming uJIT to YJIT. AKA s/ujit/yjit/g.
2021-10-20 18:19:31 -04:00
Maxime Chevalier-Boisvert e4c65ec49c Refactor uJIT code into more files for readability 2021-10-20 18:19:26 -04:00
Alan Wu 3d87eadf16 Refactor ujit_examples.h generator. Remove dwarfdump dependency 2021-10-20 18:19:24 -04:00
Nobuyoshi Nakada d53493715c Add the dependency of GNUmakefile itself [ci skip] 2021-10-06 15:42:37 +09:00
卜部昌平 5112a54846 include/ruby/encoding.h: convert macros into inline functions
Less macros == huge win.
2021-10-05 14:18:23 +09:00
Nobuyoshi Nakada bac6e8ca5d Stop building extension gems for now
Extension gems will be installed by the installed standard
libraries.
2021-10-04 20:03:14 +09:00
Nobuyoshi Nakada 98c5907c65 Ripper source on mswin
* Get rid of command substitution for cmd.exe.
* Separate RM1 command to remove single file sans directory.
2021-09-21 13:05:27 +09:00
卜部昌平 789232f9fd template/Doxyfile.tmpl: modernise
applied doxygen -g for Doxygen 1.9.3.
2021-09-15 09:25:23 +09:00
卜部昌平 679f4b895b template/Doxyfile.tmpl: EXTRACT_ALL=NO
This prevents file-static functions/variables be listed in the CAPI
documents.  An entity shall be placed inside of a file that contains
`@file` doxygen comment, in order for it to be documented. [ci skip]
2021-09-10 20:00:06 +09:00
sonots 0e3dae78b3 template/Doxyfile.tmpl: EXTRACT_STATIC: YES [Bugs #14037]
I often feel that C API documents are lacked in C source codes,
especially for static functions. I propose to turn EXTRACT_STATIC = YES
flag of Doxygen to YES, and write document comments for static functions
as much as possible.

* template/Doxyfile.tmpl: EXTRACT_STATIC: YES [Bugs #14037]
2021-09-10 20:00:06 +09:00
卜部昌平 bbe7049813 template/Doxyfile.tmpl: rethink about exclusions
I guess we don't want documents for C API of extension libraries?  They
are never intended to provide C APIs anyways.

We could revisit this decision later. [ci skip]
2021-09-10 20:00:06 +09:00
卜部昌平 809138fe4b include/ruby/io.h: add doxyen
Must not be a bad idea to improve documents. [ci skip]
2021-09-10 20:00:06 +09:00
卜部昌平 0ea157136f postscript about rb_mutex_sleep
Asked ko1 about the design.  [ci skip]
2021-09-10 20:00:06 +09:00
卜部昌平 4881a3ed38 include/ruby/internal/fl_type.h: add doxygen
Must not be a bad idea to improve documents. [ci skip]
2021-09-10 20:00:06 +09:00
卜部昌平 c3c0bf6823 include/ruby/internal/rgengc.h: add dosygen
Must not be a bad idea to improve documents. [ci skip]
2021-09-10 20:00:06 +09:00
卜部昌平 e2a441bdd4 include/ruby/internal/value_type.h: add doxygen
Must not be a bad idea to improve documents. [ci skip]
2021-09-10 20:00:06 +09:00
卜部昌平 28b7b0e13e include/ruby/internal/xmalloc.h: add doxygen
Must not be a bad idea to improve documents. [ci skip]
2021-09-10 20:00:06 +09:00
卜部昌平 b6469c3aaf template/Doxyfile.tmpl: add alias
This enables me to write `@shyouhei` in C comments without complained by
doxygen that @shyouhei is an unknown special command. [ci skip]
2021-09-10 20:00:06 +09:00
卜部昌平 a08163fb24 template/Doxyfile.tmpl: use of += operator
It is easier to maintain (e.g. sort them). [ci skip]
2021-09-10 20:00:06 +09:00
卜部昌平 f9af5c9542 template/Doxyfile.tmpl: quote spaces
The new Doxyfile.tmpl says:

> # Values that contain spaces should be placed between quotes (\" \").

[ci skip]
2021-09-10 20:00:06 +09:00
卜部昌平 85a737a1f9 template/Doxyfile.tmpl: increase DOT_GRAPH_MAX_NODES
`make capi` warned:

> warning: Included by graph for 'dllexport.h' not generated, too many nodes (85)

[ci skip]
2021-09-10 20:00:06 +09:00
卜部昌平 c9753f3f91 template/Doxyfile.tmpl: delete commented-out settings
Let our VCS manage old contents. [ci skip]
2021-09-10 20:00:06 +09:00
卜部昌平 aa5dc3e297 template/Doxyfile.tmpl: modernize
Didn't question the current settings.  This changeset just re-applied
`doxygen -g` against:

doxygen 1.9.0 (1e72202d8fa0e9d2b3f2a29c88ec4f5790a0a4e2)

[ci skip]
2021-09-10 20:00:06 +09:00