summaryrefslogtreecommitdiff
path: root/common.mk
AgeCommit message (Collapse)Author
2015-09-09* common.mk (update-gems): use BASERUBY instead of RUNRUBY.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-03common.mk: exclude memory leak testsnobu
* common.mk (TEST_EXCLUDES): exclude tests for memory leak, often too expensive and/or false-positive. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-01* thread_tools.c: rename thread_tools.c to thread_sync.c.ko1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-08-25win32.c: rb_w32_reparsenobu
* win32/win32.c (rb_w32_reparse): read reparse point in a dynamic buffer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-08-21* ext/thread/thread.c: move definitions of Queue, SizedQueueko1
and ConditionalVariables to thread_tools.c. In other wowrds, such classes are built-in. [Feature #8919] At first, I planned to embed only a Queue class. However, rubygems requires 'thread.rb' (rubygems are required at first, when launch MRI without --disable-gems). So most of people require 'thread.rb' as an embedded library. Now, ext/thread/thread.c is empty, only for a dummy for compatibility. * thread.c: move a definition of Mutex class to thread_tools.c. And define Mutex class under Thread (so now Mutex is Thread::Mutex). Because other thread related classes are also defined under Thread. We remain ::Mutex as Thread::Mutex. Only an inspect result is changed. * common.mk: add dependency from thread.o to thraed_tools.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-08-12* remove trailing spaces.svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-08-12* id_table.h: introduce ID key table.ko1
[Feature #11420] This table only manage ID->VALUE table to reduce overhead of st. Some functions prefixed rb_id_table_* are provided. * id_table.c: implement rb_id_table_*. There are several algorithms to implement it. Now, there are roughly 4 types: * st * array * hash (implemented by Yura Sokolov) * mix of array and hash The macro ID_TABLE_IMPL can choose implementation. You can see detailes about them at the head of id_table.c. At the default, I choose 34 (mix of list and hash). This is not final decision. Please report your suitable parameters or your data structure. * symbol.c: introduce rb_id_serial_t and rb_id_to_serial() to represent ID by serial number. * internal.h: use id_table for method tables. * class.c, gc.c, marshal.c, vm.c, vm_method.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-08-10win32.c: use ruby_strdupnobu
* win32/win32.c (getifaddrs): use ruby_strdup instead of combination ruby_xmalloc, lstrlen and lstrcpy. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-07-30common.mk: PHONY should be phony [ci skip]nobu
* common.mk (PHONY): should not depend on any real files, not to make those dependencies inadvertently. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-07-30common.mk: no version.inobu
* common.mk (clean-local): version.i is no longer generated automatically. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-07-29common.mk: fix conflict of version.inobu
* common.mk ($(arch)-fake.rb): read from STDIN instead of creating version.i, to get rid of conflict with tool/update-deps. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-07-27symbol.h: memoize hashval for RSymbolnormal
This speeds up the hash function for dynamic symbols. [ruby-core:70129] [Bug #11396], nearly up to Ruby 2.1 levels Power-of-two hash sizing [Feature #9425] speeds up cases where we have a good hash, but this means we can no longer hide behind weak hashes. Unfortunately, object IDs do not hash well, but we may use the extra space in the RSymbol struct to memoize the hash value. Further optimizations should be possible. For now, the st.c APIs force us to calculate rb_str_hash redundantly at dsym registration. * symbol.h (struct RSymbol): add hashval field * symbol.c (dsymbol_alloc): setup hashval field once * hash.c (rb_any_hash): return RSymbol->hashval directly * common.mk: hash.o depends on symbol.h Thanks to Bruno Escherl <bruno@escherl.net> for the bug report [ruby-core:70129] [Bug #11396] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-07-27common.mk: clean preludesnobu
* common.mk (distclean-local): clean preludes in the build diretory, not by realclean. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-07-27common.mk: fix clean ordernobu
* common.mk (clean, distclean): clean local files before platform directory, some files may exist there. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-07-27common.mk: clean-localnobu
* common.mk (clean-local): remove added files and a directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-07-22common.mk: fix execnobu
* common.mk: fix macro name, exec but not EXEC. pointed by @nagachika. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-07-22common.mk: add execnobu
* common.mk: add exec to quoted commands. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-07-07random.c: try getrandomnobu
* random.c (fill_random_bytes_syscall): try getrandom system call on Linux if supported by the kernel. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-06-26common.mk: add ccan/list headers as deps for st.cnormal
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-06-18common.mk: reorder args for ENC_MKnobu
* common.mk (ENC_MK): reorder $(ENCS) before the target file name, as enc/make_encmake.rb ignores any arguments after the target. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-06-17common.mk: -fakenobu
* common.mk (no-fake): add alias -fake for dist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-06-17common.mk: needs fake.rbnobu
* common.mk (ENC_MK): needs fake.rb if cross compilation. [ruby-dev:49098] [Bug #11272] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-06-14file.c: open without gvlnobu
* file.c (rb_file_load_ok): try opening file without gvl not to lock entire process. [Bug #11060] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-06-10common.mk: update version.inobu
* common.mk (version.i): ensure up-to-date. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-06-10fake.rb.in: accurate fakenobu
* template/fake.rb.in: turn into erb template from autoconf template to fake more accurately. * common.mk (fake.rb): needs preprocessed file now. * version.c (Init_version): add dummy expression to RUBY_ENGINE_VERSION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-23common.mk: update-man-datenobu
* common.mk (update-man-date): update last date in man pages. * tool/vcs.rb (VCS#modified): returns last modified time. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-20* common.mk: commit miss of r50357.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-20* common.mk ($(arch)-fake.rb): fix the path separator up for Windows.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-02rbconfig.rb: use program versionnobu
* common.mk, tool/mkconfig.rb: check the running ruby version in rbconfig.rb with the program version, as RUBY_VERSION has never been affected by --with-ruby-version option. [ruby-core:68639] [Bug #11002] * configure.in (LIBRUBY_DLDFLAGS): compatibility_version must be valid version numbers, not an arbitrary string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-02common.mk: examnobu
* common.mk (exam): renamed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-01common.mk: foolnobu
* common.mk (fool): target to check and test rubyspec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-27common.mk: revert to MINIRUBYnobu
* common.mk: revert using BOOTSTRAPRUBY for enc.mk, as enc/depend uses CONFIG. [ruby-core:68647] [Bug #11004] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-26common.mk: BOOTSTRAPRUBY for enc.mknobu
* common.mk (enc.mk): use BOOTSTRAPRUBY since enc/make_encmake.rb should not depend on recent versions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-21common.mk: strip autogenerated dependenciesnobu
* common.mk (ext/ripper/ripper.c, ext/rbconfig/sizeof/sizes.c): strip autogenerated dependencies which have invalid syntax in other than nmake. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-19common.mk: verconf.h by BOOTSTRAPRUBYnobu
* common.mk (verconf.h): use BOOTSTRAPRUBY as generic_erb.rb and the template are not dependent on built-in constants. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-12* internal.h, node.h: move a definition of `struct rb_global_entry'ko1
and related functions from node.h to internal.h. * variable.c: remove unused include pragma. * common.mk: remove unused dependency. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-12* common.mk: remove unused dependency.ko1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-08miniinit.c: minimum built-in encodings in minirubynobu
* common.mk (MINIOBJS): no longer need dmyenc.o. * miniinit.c (Init_enc): declare minimum built-in encodings so that these Encoding constants will be available in miniruby. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-07common.mk: same fake.rbnobu
* common.mk (fake.rb): generate from same template on all platforms including win32. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-07mkconfig.rb: without fake.rbnobu
* tool/mkconfig.rb: use arguments instead of built-in constants to work without fake.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-07configure.in: BOOTSTRAPRUBYnobu
* configure.in (BOOTSTRAPRUBY): baseruby if cross compiling or miniruby, anyway runnable ruby command. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-25fake.rb: rubyarchhdrdir for rubyspecnobu
* common.mk (test-rubyspec): use fake script to set header directories. * template/fake.rb.in (RUBYOPT): set -r option to propagate to forked processes. * tool/fake.rb (prehook): set rubyarchhdrdir too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-24common.mk: RUBY_TESTOPTSnobu
* common.mk (TESTOPTS): initialize by the environment variable RUBY_TESTOPTS, which is prefixed to get rid of conflict. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-24common.mk: prefix timestamp file by "."nobu
* common.mk (ENC_TRANS_D): prefix by "." to clarify that timestamp file for build directory is under the build directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-23Makefile.in: make static IDs symbols localnobu
* Makefile.in (LIBRUBY_SO): make symbols for static IDs which begin with ruby_static_id_ local too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-22* common.mk: use ruby organization for rubyspec.hsbt
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-09TestException.rb: exclude stack overflow testsnobu
* test/excludes/TestException.rb: exclude machine stack overflow tests by default. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-04Makefile.in: do not rebuild unnecessarilynobu
* Makefile.in (probes.stamp): rebuild dtrace dependent objects only when `dtrace -G` modifies its input files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-03* common.mk (ruby-glommed.o): dependency on $(OBJ) should be writtenngoto
in common.mk (in which OBJ is defined) because of Makefile include and parse order. This partly reverts r49419. [ruby-dev:48849] [Bug #10808] * Makefile.in (ruby-glommed.o): ditto. * Makefile.in (ruby-glommed.o): remove excess $(DTRACE_OBJ) because it is included in $(OBJS) since r49451. * Makefile.in (probes.o): should depend on $(DTRACE_DEPENDENT_OBJS) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-30common.mk: link DTRACE_OBJnobu
* common.mk (COMMONOBJS): include $(DTRACE_OBJ) which is necessary for $(DTRACE_DEPENDENT_OBJS). * configure.in (RUBY_DTRACE_POSTPROCESS): separate whether dtrace is needed to genearate probes.o and whether it modifies input object files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e