aboutsummaryrefslogtreecommitdiffstats
path: root/common.mk
Commit message (Collapse)AuthorAgeFilesLines
* Add debug counters.ko12017-05-241-0/+3
| | | | | | | | | | | | | | | | | * debug_counter.h: add the following counters to measure object types. obj_free: freed count obj_str_ptr: freed count of Strings they have extra buff. obj_str_embed: freed count of Strings they don't have extra buff. obj_str_shared: freed count of Strings they have shared extra buff. obj_str_nofree: freed count of Strings they are marked as nofree. obj_str_fstr: freed count of Strings they are marked as fstr. obj_ary_ptr: freed count of Arrays they have extra buff. obj_ary_embed: freed count of Arrays they don't have extra buff. obj_obj_ptr: freed count of Objects (T_OBJECT) they have extra buff. obj_obj_embed: freed count of Objects they don't have extra buff. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* downloader cachenobu2017-05-211-6/+5
| | | | | | * tool/downloader.rb (Downloader.download): manage download cache. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: path in parse.cnobu2017-05-181-1/+1
| | | | | | | | * common.mk (parse.c): replace source file name in #line pragmas with the path in the source directory, so that binary utilities, e.g. gcov, can find it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* run tests without extsnobu2017-05-161-2/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (help): get rid of make error with nmake.usa2017-05-161-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* restore yes-test-rubyspecko12017-05-161-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Rename rubyspec to specusa2017-05-161-15/+21
| | | | | | | | * common.mk (*-rubyspec): rename to *-spec because rubyspec is historical name. of course, *-rubyspec are still available for compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* define RUBY_DEBUG_ENV only for main.cnobu2017-05-151-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* make test-rubyspec-prechecknobu2017-05-131-1/+1
| | | | | | | * common.mk (yes-test-rubyspec): make test-rubyspec-precheck for fake.rb to setup build configuration. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* spec has been merged, then should run it in loveusa2017-05-121-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* relative path as VPATHnobu2017-05-071-2/+2
| | | | | | | * common.mk (ripper.c): use relative path as VPATH instead of absolute path of the current working directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* stale targetsnobu2017-05-071-3/+4
| | | | | | * common.mk (update-mspec, update-rubyspec): empty stale targets. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* make update-rubyspec is no longer needederegon2017-05-071-2/+1
| | | | | | * Kept a no-op for compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix up r58573nobu2017-05-061-1/+1
| | | | | | | * common.mk: make the directory for extension shared library with the timestamp directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove enc/prelude.rb from list of prelude files in common.mkduerst2017-05-061-1/+1
| | | | | | | | (This is a retry of r58559, it should work now that rubyspec does no longer check for unicode_normalized to be required. See also https://github.com/ruby/spec/commit/41176ead68b14011658c8abd0ebd67df2ae632fb.) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* timestamp for extensionsnobu2017-05-061-4/+4
| | | | | | | * common.mk: use the same timestamp file for architecture specific directory as the file used in Makefiles under ext. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert 58559, because it fails on travis (rubyspec problem)duerst2017-05-041-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove enc/prelude.rb from list of prelude files in common.mkduerst2017-05-041-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkconfig.rb: remove cross_compilingnobu2017-05-021-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: BOOTSTRAPRUBY for enc.mknobu2017-05-021-1/+1
| | | | | | | * common.mk ($(ENC_MK)): use $(BOOTSTRAPRUBY) as well as $(RBCONFIG), instead of $(MINIRUBY). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix ripper prereqnobu2017-04-271-2/+2
| | | | | | | | | * common.mk (ext/ripper/ripper.c): fix VPATH when out-of-place build, and id.h was created in the build directory too. it has to include the build directory, i.e., the current directory before `cd`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert r58478 and r58479 because they do not support not in-place buildko12017-04-251-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* No need to pass the config file to mspec as mspec finds it itselferegon2017-04-251-1/+1
| | | | | | * It would also #load (because .mspec cannot be #require'd) it twice. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update sources and include files after updatenobu2017-04-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Remove missing/strtol.crhe2017-04-211-2/+0
| | | | | | | It is never used. We don't need it anyway as it's part of C89 which is our current minimum requirement. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/extmk.rb: colorize notes [Feature #13302]nobu2017-04-211-1/+1
| | | | | | | | | | * common.mk (build-ext): pass variables to colorize. * ext/extmk.rb: colorize notes with tool/colorize.rb. * tool/colorize.rb: extract from tool/generic_erb.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: separate notenobu2017-04-201-0/+1
| | | | | | | * common.mk (build-ext): separate note from building extensions, not to be intermingled. [ruby-core:80759] [Feature #13302] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* time.c: use predefined IDsnormal2017-04-101-0/+1
| | | | | | | | | | | | | | | This reduces rb_intern calls during startup and shortens code. * time.c: include id.h for predefined IDs (id_mul, id_eq, id_ne, id_cmp): remove static variables (eq): replace id_eq with idEq (cmp, wcmp): replace id_cmp with idCmp (weq): replace id_eq with idEq (time_timespec): replace id_mul with '*' (Init_Time): remove rb_intern calls for removed variables * common.mk (time.$(OBJEXT)): add depend on id.h git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add --with-git optionnobu2017-04-101-1/+3
| | | | | | | * configure.in, win32/configure.bat: add --with-git option to tell git command to use, or not to use git. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix `make clean` errorssorah2017-03-291-1/+1
| | | | | | | | | | | Patch by Kohei Suzuki <eagletmt@gmail.com>. * common.mk(clean-rubyspec): Supress error messages when rubyspec files don't exist. [GH-1563] [Bug #13384] * Makefile.in: Fix error when files don't exist. [GH-1563] [Bug #13384] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: test-rubyspecnobu2017-03-261-0/+1
| | | | | | * common.mk (yes-test-rubyspec): make jobserver ready. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Do not update Unicode headersnobu2017-03-241-4/+4
| | | | | | | * common.mk (name2ctype.h, casefold.h): use as checked out unless ALWAYS_UPDATE_UNICODE=yes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: touch-unicode-filesnobu2017-03-241-2/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Make Unicode data directorynobu2017-03-241-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Don't download from Unicode.orgnobu2017-03-231-3/+7
| | | | | | | * .travis.yml, appveyor.yml: use checked out headers for Unicode, to get rid of downloading data files from Unicode.org. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: updating name2ctype.hnobu2017-03-231-8/+6
| | | | | | | * common.mk (name2ctype.h): update if ALWAYS_UPDATE_UNICODE = yes, as well as casefold.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby tool/update-deps --fixshyouhei2017-03-221-4/+79
| | | | | | | | | | | | | | Onigumo 6 (r57045) introduced new onigumo.h header file, which is required from quite much everywhere. This commit adds necessary dependencies. Note: ruby/oniguruma.h now includes onigumo.h, ruby/io.h includes oniguruma.h, ruby/encoding.h also includes oniguruma.h, and internal.h includes encoding.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: ignore clean-rubyspec error [ci skip]nobu2017-03-101-1/+1
| | | | | | | * common.mk (clean-rubyspec): nothing to clean before running rubyspec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* debug_counter.c: debug_counter_names [ci skip]nobu2017-03-101-7/+1
| | | | | | | | | | * debug_counter.c (debug_counter_names): stringize debug counter names by preprocessor. * debug_counter.h (RB_DEBUG_COUNTER): define counter names outside the include guard, to expand multiple times. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* great lovenobu2017-03-081-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* MINIRUBY for cross-complingnobu2017-03-031-2/+4
| | | | | | | * template/configure-ext.mk.tmpl (EXTMK_ARGS): add MINIRUBY for cross-compling, which is used in extmk.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix for cross-compilingnobu2017-03-021-2/+4
| | | | | | | | * common.mk (test-rubyspec): add dependency for cross-compiling. * defs/gmake.mk: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: separate clean-extnobu2017-03-011-2/+21
| | | | | | | * common.mk (clean-ext): separate clean-up of makefiles and timestamps, and clean-up of subdirectories under ext and gems. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk (distclean): clean docs toonobu2017-02-271-6/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: clean-rubyspecnobu2017-02-271-2/+9
| | | | | | | * common.mk (clean-rubyspec): remove OBJDIR for rubyspec C-API tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* clean morenobu2017-02-271-1/+1
| | | | | | | | | | * Makefile.in (clean-local): remove debug symbol directories on Mac OS. * common.mk (clean-ext): remove parent directories of timestamp directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bignum.c: use predefined IDsnobu2017-02-251-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add performance counting mechanism for MRI debug/tuning purpose.ko12017-02-211-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * How to enable this feature? * define USE_DEBUG_COUNTER as 1. * you can disable to output the result with RUBY_DEBUG_COUNTER_DISABLE environment variable even if USE_DEBUG_COUNTER == 1. * How to add new counter? * add COUNTER(<name>) line on debug_counter.h. * include "debug_counter.h" * insert RB_DEBUG_COUNTER_INC(<name>) line on your favorite place. * counter output example: [RUBY_DEBUG_COUNTER] mc_inline_hit 999 [RUBY_DEBUG_COUNTER] mc_inline_miss 3 [RUBY_DEBUG_COUNTER] mc_global_hit 23 [RUBY_DEBUG_COUNTER] mc_global_miss 273 [RUBY_DEBUG_COUNTER] mc_global_state_miss 3 [RUBY_DEBUG_COUNTER] mc_class_serial_miss 0 [RUBY_DEBUG_COUNTER] mc_cme_complement 0 [RUBY_DEBUG_COUNTER] mc_cme_complement_hit 0 [RUBY_DEBUG_COUNTER] mc_search_super 1384 [RUBY_DEBUG_COUNTER] ivar_get_hit 0 [RUBY_DEBUG_COUNTER] ivar_get_miss 0 [RUBY_DEBUG_COUNTER] ivar_set_hit 0 [RUBY_DEBUG_COUNTER] ivar_set_miss 0 [RUBY_DEBUG_COUNTER] ivar_get 431 [RUBY_DEBUG_COUNTER] ivar_set 465 * mc_... is related to method caching. * ivar_... is related to instance variable accesses. * compare with dtrace/system tap features, there are completely no performacne penalties when it is disabled. * This feature is supported only on __GNUC__ compilers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gmake.mk: tests stepnobu2017-02-131-2/+2
| | | | | | * defs/gmake.mk (TEST_TARGETS): run tests step by step. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* MFLAGS for nmakenobu2017-02-101-15/+16
| | | | | | | | | | | | * common.mk (mflags): pass make flags to sub-makes, for nmake which cannot pass them by the environment variable. * defs/gmake.mk (mflags): filter out -j option for sub-makes. * template/exts.mk.tmpl (MFLAGS): extract MFLAGS from sub extmk files for nmake. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e