summaryrefslogtreecommitdiff
path: root/common.mk
AgeCommit message (Collapse)Author
2024-03-28Clean symlinks to be runnable [ci skip]Nobuyoshi Nakada
2024-03-25YJIT: Propagate Array, Hash, and String classes (#10323)Takashi Kokubun
2024-03-24Remove never used macros related to RJIT [ci skip]Nobuyoshi Nakada
These macros have not been used since the commit "Stop exporting symbols for MJIT" 233ddfac541749a0da80ea27913dc1ef4ea700bb, and renamed as RJIT.
2024-03-20[PRISM] Enable specs in CIKevin Newton
2024-03-18[PRISM] Remove unnecessary dependencies in common.mkKevin Newton
2024-03-10Clean intermediate files and debug info for each targetNobuyoshi Nakada
By replacing `ALLOBJS` suffix with intermediate file suffixes instead of roughly removing by wildcards. Made `cleanlibs` append `.dSYM` suffix for each word in `TARGET_SO`, not the end of the entire list.
2024-03-07Clean up files made by runnable in clean-runnable [ci skip]Nobuyoshi Nakada
2024-03-07Clean up dump file generated by `--yjit-exit-locations` [ci skip]Nobuyoshi Nakada
2024-03-06[PRISM] Update dependencies for prism diagnosticsKevin Newton
2024-03-06Move FL_SINGLETON to FL_USER1Jean Boussier
This frees FL_USER0 on both T_MODULE and T_CLASS. Note: prior to this, FL_SINGLETON was never set on T_MODULE, so checking for `FL_SINGLETON` without first checking that `FL_TYPE` was `T_CLASS` was valid. That's no longer the case.
2024-02-23Update common.mkPeter Zhu
2024-02-23YJIT: Lazily push a frame for specialized C funcs (#10080)Takashi Kokubun
* YJIT: Lazily push a frame for specialized C funcs Co-authored-by: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> * Fix a comment on pc_to_cfunc * Rename rb_yjit_check_pc to rb_yjit_lazy_push_frame * Rename it to jit_prepare_lazy_frame_call * Fix a typo * Optimize String#getbyte as well * Optimize String#byteslice as well --------- Co-authored-by: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>
2024-02-23[PRISM] Use new static literal comparisonsKevin Newton
2024-02-22[PRISM] Integrate new number parsingKevin Newton
2024-02-22Extract imemo functions from gc.c into imemo.cPeter Zhu
2024-02-21Separate miniruby from dmyext.cNobuyoshi Nakada
2024-02-21Introduce NODE_REGX to manage regexp literalyui-knk
2024-02-19Don't exclude `test_gem_package_task.rb` explicitly.Hiroshi SHIBATA
3d4f5e7671271335429e33605366f792bc84a2a2 suppressed warnings.
2024-02-16Fix PRISM build dependenciesAlan Wu
2024-02-16We can test bundled gems without default gems installationHiroshi SHIBATA
2024-02-15Added singleton for primeHiroshi SHIBATA
2024-02-15No need to extract bundled gems before test-specBenoit Daloze
* Since https://github.com/ruby/ruby/pull/9977
2024-02-15Fix task dependencyHiroshi SHIBATA
2024-02-15Added new ruby/spec task for bundled gemsHiroshi SHIBATA
2024-02-13[PRISM] Fix up common.mk dependenciesKevin Newton
2024-02-12Try prepare-gems instead of extract-gemsBenoit Daloze
* `make install` uses prepare-gems.
2024-02-12Always extract bundled gems before running ruby/specBenoit Daloze
* Fixes https://github.com/ruby/ruby/commit/44d74f22c8da3c13aa5363769418e2f5fd29f65a#r138276491
2024-02-12Burn default ASAN options into the built RubyKJ Tsanaktsidis
* We always need use_sigaltstack=0 because Ruby registers sigaltstack handlers * We also need to disable leak detection (unless RUBY_FREE_AT_EXIT is set - I might experiment later with automatically enabling leak detection if RUBY_FREE_AT_EXIT is set). Burning it into the built ruby binary in this way avoids people needing to remember to start their Ruby program with these flags all the time. We also need a small fix in mkmf to make sure that test programs also don't have leak detection enabled (this is never desirable) [Bug #20256]
2024-02-03Statically linking does not use shared libraries of encodingsNobuyoshi Nakada
2024-01-31[PRISM] Mirror iseq APIsKevin Newton
Before this commit, we were mixing a lot of concerns with the prism compile between RubyVM::InstructionSequence and the general entry points to the prism parser/compiler. This commit makes all of the various prism-related APIs mirror their corresponding APIs in the existing parser/compiler. This means we now have the correct frame naming, and it's much easier to follow where the logic actually flows. Furthermore this consolidates a lot of the prism initialization, making it easier to see where we could potentially be raising errors.
2024-01-31Introduced `rb_node_const_decl_val` functionS.H
Introduce `rb_node_const_decl_val` function to allow `rb_ary_join` and `rb_ary_reverse` functions to be removed from Universal Parser.
2024-01-22Re-use drb from bundled gemsHiroshi SHIBATA
2024-01-19Added dependencies rinda and drbHiroshi SHIBATA
2024-01-19Mark asan fake stacks during machine stack markingKJ Tsanaktsidis
ASAN leaves a pointer to the fake frame on the stack; we can use the __asan_addr_is_in_fake_stack API to work out the extent of the fake stack and thus mark any VALUEs contained therein. [Bug #20001]
2024-01-16Set `CHECK_LEAKS` in spec/default.mspecNobuyoshi Nakada
Because of `.NOEXPORT:` in template/Makefile.in, variables in common.mk will not be exported.
2024-01-16Always enabled leakchecker by ruby/mspecHiroshi SHIBATA
2024-01-12Restore unknown caseyui-knk
This existed before 1b8d01136c3ff6c60325c7609d61e19ac42acd9f.
2024-01-12Revert "Mark asan fake stacks during machine stack marking"KJ Tsanaktsidis
This reverts commit d10bc3a2b8300cffc383e10c3730871e851be24c.
2024-01-12Mark asan fake stacks during machine stack markingKJ Tsanaktsidis
ASAN leaves a pointer to the fake frame on the stack; we can use the __asan_addr_is_in_fake_stack API to work out the extent of the fake stack and thus mark any VALUEs contained therein. [Bug #20001]
2024-01-11[PRISM] Raise syntax errors when foundKevin Newton
2024-01-11Free environ when RUBY_FREE_AT_EXITPeter Zhu
The environ is malloc'd, so it gets reported as a memory leak. This commit adds ruby_free_proctitle which frees it during shutdown when RUBY_FREE_AT_EXIT is set. STACK OF 1 INSTANCE OF 'ROOT LEAK: <calloc in ruby_init_setproctitle>': 5 dyld 0x18b7090e0 start + 2360 4 ruby 0x10000e3a8 main + 100 main.c:58 3 ruby 0x1000b4dfc ruby_options + 180 eval.c:121 2 ruby 0x1001c5f70 ruby_process_options + 200 ruby.c:3014 1 ruby 0x10035c9fc ruby_init_setproctitle + 76 setproctitle.c:105 0 libsystem_malloc.dylib 0x18b8c7b78 _malloc_zone_calloc_instrumented_or_legacy + 100
2024-01-09outdate-bundled-gems.rb: Pass platform and version explicitlyNobuyoshi Nakada
For different version baseruby, use the target platform and version instead of the info of baseruby.
2024-01-07Introduce Numeric Node'sS-H-GAMELINKS
2024-01-06[DOC] Load options and parse files from srcdirNobuyoshi Nakada
RDoc options that do not change and can be written in `.rdoc_options` file are moved, so that they match when called without `make`. Get rid of parsing the files in `page_dir` twice (as relative paths and absolute paths).
2024-01-04Skip test depending on bundled gemsNobuyoshi Nakada
Because bundled gems cannot be loaded at test-all, this test which depends on one of the bundled gems, `rake`, always does nothing except print an expected warning.
2024-01-02Fix up common.mk targets for prismKevin Newton
2024-01-02Introduce NODE_FILEyui-knk
`__FILE__` was managed by `NODE_STR` with `String` object. This commit introduces `NODE_FILE` and `struct rb_parser_string` so that 1. `__FILE__` is detectable from AST Node 2. Reduce dependency ruby object
2023-12-29Introduce NODE_LINEyui-knk
`__LINE__` was managed by `NODE_LIT` with `Integer` object. This commit introduces `NODE_LINE` so that 1. `__LINE__` is detectable from AST Node 2. Reduce dependency ruby object
2023-12-25Move internal ST functions to internal/st.hPeter Zhu
st_replace and st_init_existing_table_with_size are functions used internally in Ruby and should not be publicly visible.
2023-12-23Make rbconfig.rb loadable from exe/rubyNobuyoshi Nakada
So that it can run without `--disable=gems` option.