summaryrefslogtreecommitdiff
path: root/template
AgeCommit message (Collapse)Author
2020-03-23Make file names and variable names consistentTakashi Kokubun
2020-03-24Moved MJIT_WITHOUT_TABS default to configure.acNobuyoshi Nakada
And then the environment variable.
2020-03-13Update and extract for each gemNobuyoshi Nakada
2020-02-06add predefined macros for Doxygen卜部昌平
Predefined macros are practices not very well recommended, but can be better than having no documents at all. Without those predefined macros, Doxygen confused for instace PUREFUNC(int foo()) to be a declaration of PUREFUNC, not foo. Notes: Merged: https://github.com/ruby/ruby/pull/2885
2020-01-20Get rid of use of special variablesJeremy Evans
Use `"\n"` and `IO#fileno` instead of `$/` and `$.` respectively. [Feature #14240]
2020-01-18Update clean-local [ci skip]Nobuyoshi Nakada
* Remove builtin_binary.inc which is generated for each time miniruby is built. * dSYM is a directory, not a file.
2019-12-26decouple internal.h headers卜部昌平
Saves comitters' daily life by avoid #include-ing everything from internal.h to make each file do so instead. This would significantly speed up incremental builds. We take the following inclusion order in this changeset: 1. "ruby/config.h", where _GNU_SOURCE is defined (must be the very first thing among everything). 2. RUBY_EXTCONF_H if any. 3. Standard C headers, sorted alphabetically. 4. Other system headers, maybe guarded by #ifdef 5. Everything else, sorted alphabetically. Exceptions are those win32-related headers, which tend not be self- containing (headers have inclusion order dependencies). Notes: Merged: https://github.com/ruby/ruby/pull/2711
2019-12-11remove prelude.cKoichi Sasada
prelude.c is an automatically generated file by template/prelude.c.tmpl. However it does not contain any required functions. So remove it from dependency. Also miniprelude.c is included by mini_builtin.c and does not need to make miniprelude.o. Notes: Merged: https://github.com/ruby/ruby/pull/2735
2019-12-11use compiled binary for gem_prelude.rb.Koichi Sasada
`gem_prelude.rb` is not compiled yet. This patch compile it to compiled binary. Notes: Merged: https://github.com/ruby/ruby/pull/2735
2019-11-15load prelude.rb by builtin features.Koichi Sasada
The script in prelude.rb was embed in MRI to load it (eval this script at everyboot). This commit change the loading process of prelude.rb. MRI doesn't eval a script, but load from compiled binary with builtin feature. So that Init_prelude() does not load `prelude.rb` now.
2019-11-13Add missing Makefile dependencies for the tool/insns2vm.rb scriptDylan Thacker-Smith
Notes: Merged: https://github.com/ruby/ruby/pull/2657
2019-11-10Get rid of FreeBSD make incompatibility [Bug #16331]Nobuyoshi Nakada
FreeBSD make works differently with `-j` option. > -j max_jobs > Specify the maximum number of jobs that `make` may have running > at any one time. The value is saved in `.MAKE.JOBS.` Turns > compatibility mode off, unless the `B` flag is also specified. > When compatibility mode is off, all commands associated with a > target are executed in a single shell invocation as opposed to > the traditional one shell invocation per line. This can break > traditional scripts which change directories on each command > invocation and then expect to start with a fresh environment on > the next line. It is more efficient to correct the scripts > rather than turn backwards compatibility on. Stop using exit, cd, exec in middle of commands.
2019-11-09Embed builtin ruby scripts in miniprelude.cNobuyoshi Nakada
Instead of reading from the files by the full-path at runtime. As rbinc files need to be included in distributed tarballs, the full-paths at the packaging are unavailable at compilation times.
2019-11-09Fixed commit missNobuyoshi Nakada
2019-11-09Fixed `#line` directives in miniprelude.cNobuyoshi Nakada
2019-11-05Share test-bundled-gems-run in common.mkNobuyoshi Nakada
2019-10-28Clean mjit and timestamp directoriesNobuyoshi Nakada
2019-10-18Use `_` instead of `_n_`Kazuhiro NISHIYAMA
2019-10-18Suppress numbered parameter warningsNobuyoshi Nakada
2019-09-29Pass $(XRUBY) to test-bundled-gems.rb since RbConfig.ruby is incorrect for ↵Benoit Daloze
miniruby Notes: Merged: https://github.com/ruby/ruby/pull/2503
2019-09-29Move the logic to test bundled gems to Ruby codeBenoit Daloze
* Writing shell scripts in a Makefile is very error-prone. * TEST_BUNDLED_GEMS_ALLOW_FAILURES seemed to not work before. Notes: Merged: https://github.com/ruby/ruby/pull/2503
2019-09-07Fixed wrong usage of file2lastrev.rbNobuyoshi Nakada
2019-09-06add include/ruby/backward/cxxanyargs.hpp卜部昌平
Compilation of extension libraries written in C++ are reportedly broken due to https://github.com/ruby/ruby/pull/2404 The root cause of this issue was that the definition of ANYARGS differ between C and C++, and that of C++ is incompatible with the updated ones. We are using the incompatibility against itself. In C++ two distinct function prototypes can be overloaded. We provide the old, ANYARGSed prototypes in addition to the current granular ones; and let the older ones warn about types.
2019-08-26Moved INCFLAGS to XCFLAGS from CPPFLAGS as well as mswinNobuyoshi Nakada
Rules which have used CPPFLAGS will need XCFLAGS or INCFLAGS now.
2019-08-26rb_mjit_header.h is not worth documenting [ci skip]卜部昌平
This is an auto-generated header file that does not include anything interesting. Should skip generating CAPI documents.
2019-07-24test-bundled-gems-run: Respect -k optionNobuyoshi Nakada
2019-07-24Reduced duplicate commands in test-bundled-gems-runNobuyoshi Nakada
2019-07-18Improve build process and coroutine implementation selection.Samuel Williams
2019-07-14Added depend filesNobuyoshi Nakada
2019-07-01Substitue suffixes with dotNobuyoshi Nakada
2019-07-01Use configured ASMEXTNobuyoshi Nakada
2019-06-07Moved Makefile.in under templateNobuyoshi Nakada
2019-06-07Revert "Moved Makefile.in under template"Nobuyoshi Nakada
This reverts commits: * 6f9d5fafe040cb02a1278fbfcdcb8063d564824c * bb3c89b6437049e26669b2156310670d5e06e386 And remove the dependency of Makefile on Makefile.in transitionally.
2019-06-07Moved Makefile.in under templateNobuyoshi Nakada
2019-04-19template/prelude.c.tmpl: allow UTF-8 charactersnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-18fake.rb.in: split by whitespaces not to be affected by -F optionnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-04change lib/unicode_normalize/tables.rb to single item per line to make diffs ↵duerst
shorter * template/unicode_norm_gen.tmpl: Change formatting of output to produce only a single item (or range) for each line to make future diffs shorter and easier to understand and check. * lib/unicode_normalize/tables.rb: output of the above git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-12Disable tailcall optimization [Bug #15303]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-01Let sub-directory exts depend on their parent extmrkn
* ext/extmk.rb: Let sub-directory exts depend on their parent ext. * template/exts.mk.tmpl: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-13Moved REVISION_FORCE before uncommon.mknobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-07ruby-runner.c: enable MJIT_SEARCH_BUILD_DIRnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-27Fix template/fake.rb.in if ENV["RUBYOPT"] is nileregon
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-27Fix template/fake.rb.in when external and internal encodings are seteregon
* To be able to run spec/ruby/command_line/dash_encoding_spec.rb with the in-repo build. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-07-30reduce copy & pasteshyouhei
We see several occurrence of "diagnostic push/pop" so why not make them macros. Tested on GCC8 / Clang 6. Note that ruby.h is intentionally left untouched because we don't want to introduce new public macros. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-07-03fake.rb.in: duplicated RUBYOPTnobu
* template/fake.rb.in: removed duplicated options in RUBYOPT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-06-15Remove flip-flop usages from build scriptsmame
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-06-15Bootstrapping ruby runtime might not have RubyVM::MJIT defined.nobu
[Fix GH-1891] From: U-DESKTOP-RLT5UQ8\moriyoshi <mozo@mozo.jp> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-05-29fake.rb: fix RUBY_DESCRIPTION for MJITnobu
* template/fake.rb.in: switch RUBY_DESCRIPTION at runtime depending on the MJIT status. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-05-29fake.rb: fix RUBY_DESCRIPTION for MJITnobu
* template/fake.rb.in: reflect MJIT to RUBY_DESCRIPTION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-03-19parse.y: NUL-terminate ruby_sourcefilenobu
* parse.y (yycompile): in some cases (warning, error, dtrace,...), ruby_sourcefile is expected to be NUL-terminated, so ensure it. * template/prelude.c.tmpl (prelude_name): NUL-terminate to get rid of copying static data. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e