aboutsummaryrefslogtreecommitdiffstats
path: root/common.mk
Commit message (Collapse)AuthorAgeFilesLines
* common.mk: fix command errornobu2014-01-161-2/+1
| | | | | | * common.mk (capi): flags cannot be separated by escaped newlines. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: ignore capi failurenobu2014-01-151-0/+1
| | | | | | * common.mk (capi): ignore doxygen failure (temporarily). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby/util.h: DECIMAL_SIZE_OF_BITSnobu2014-01-121-1/+3
| | | | | | | | | | | | | * include/ruby/util.h (DECIMAL_SIZE_OF_BITS): a preprocessor constant macro to approximate decimal representation size of n-bits integer. * iseq.c (register_label): use DECIMAL_SIZE_OF_BITS for better approximation. * ext/bigdecimal/bigdecimal.c (BigMath_s_log): ditto. * common.mk (iseq.o), ext/bigdecimal/depend (bigdecimal.o): add dependency to ruby/util.h for DECIMAL_SIZE_OF_BITS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* verconf.h.tmpl: renamenobu2013-12-271-2/+2
| | | | | | | | | * template/verconf.h.tmpl: rename from .in since this is an erb template file, but not for config.status. * common.mk (verconf.h): rename the dependent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* avoid circular dependency on AIXkanemoto2013-12-081-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: use BASERUBYnobu2013-11-281-1/+1
| | | | | | | | * common.mk (Doxyfile): tool/file2lastrev.rb needs running with BASERUBY since r43617. [ruby-dev:47823] [Bug #9169] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: add useful config "set breakpoint pending on"ko12013-11-261-1/+2
| | | | | | | | for run.gdb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/rbconfig/sizeof: move to an extension librarynobu2013-11-181-8/+8
| | | | | | | | | | | | * common.mk, ext/rbconfig/sizeof: move RbConfig::SIZEOF to an extension library to get rid of annoying nmake VPATH rule. * inits.c (rb_call_inits), miniinit.c (Init_sizes): RbConfig::SIZEOF is no loger built-in. * template/sizes.c.tmpl (Init_sizeof): rename initialization function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (help): add texts about gcbench.tarui2013-11-061-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk, ext/objspace/depend, ext/coverage/depend,akr2013-10-281-4/+4
| | | | | | | ext/-test-/debug/depend, ext/date/depend: Update dependencies. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby.c: gem_prelude to load rubygemsnobu2013-10-141-2/+0
| | | | | | | | | * ruby.c (process_options): use gem_prelude instead of requiring rubygems directly when --enable=gems is given. * Makefile.in (DEFAULT_PRELUDES): always use gem_prelude regardless of --disable-rubygems. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: revert r43137 and r43145nobu2013-10-051-2/+2
| | | | | | | * common.mk (sizes.c): revert r43137 and r43145, because the former commit made sizes.c rebuild always each build. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: sizes.c depends on PREP nownobu2013-10-051-1/+1
| | | | | | | * common.mk (sizes.c): now depends on PREP, which is miniruby if native compile or fake.rb otherwise, to run MINIRUBY [Bug #8968] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: make sizes.c with MINIRUBYnobu2013-10-041-1/+1
| | | | | | | | * common.mk (sizes.c): use MINIRUBY because Init_sizes() for miniruby is defined in miniinit.c and miniruby does not depend on this file. [Bug #8968] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: use RUNRUBY for test-samplenobu2013-10-031-1/+1
| | | | | | | * common.mk (yes-test-sample): use RUNRUBY instead of MINIRUBY to set runtime library path and run the built ruby. [Bug #8971] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: RUN_OPTS to testsnobu2013-09-201-4/+4
| | | | | | | | | | * common.mk (btest, btest-ruby, test-knownbug): add $(RUN_OPTS) to ruby to be run, so that tests are runnable before making exts. * common.mk (test-sample): ditto, and use $(MINIRUBY) as rubytest.rb does not need extension libraries. * tool/rubytest.rb: pass $(RUN_OPTS) to testing ruby using --run-opt. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk, win32/Makefile.sub: refix sizez.c for nmakenobu2013-09-081-1/+1
| | | | | | | | * common.mk (sizes.c): revert r42854 and r42883. * win32/Makefile.sub (sizes.c): rule for outplace build. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: in-place buildnobu2013-09-071-1/+1
| | | | | | * common.mk (sizes.c): try to fix for in-place build. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: use RUNRUBY instead of MINIRUBY because MINIRUBY can'tglass2013-09-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | require extension libraries. The patch is from nobu (Nobuyoshi Nakada). * ext/thread/extconf.rb: for build ext/thread/thread.c. * include/ruby/intern.h: ditto. * thread.c: ditto. * lib/thread.rb: removed and replaced by ext/thread/thread.c. * ext/thread/thread.c: Queue, SizedQueue and ConditionVariable implementations in C. This patch is based on patches from panaggio (Ricardo Panaggio) and funny_falcon (Yura Sokolov) and ko1 (Koichi Sasada). [ruby-core:31513] [Feature #3620] * test/thread/test_queue.rb (test_queue_thread_raise): add a test for ensuring that killed thread should be removed from waiting threads. It is based on a code by ko1 (Koichi Sasada). [ruby-core:45950] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: sizes.c for nmakenobu2013-09-061-1/+1
| | | | | | * common.mk (sizes.c): needs VPATH to outplace build with nmake. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sizes.c.tmpl: autogeneratenobu2013-08-261-2/+7
| | | | | | | | * template/sizes.c.tmpl: generate automatically by extracting RUBY_CHECK_SIZEOF from configure.in. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: install archnobu2013-08-081-1/+1
| | | | | | | * common.mk (do-install-arch): install architecture dependent files all, including libraries. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (mini): portable target to build minirubynaruse2013-08-081-0/+7
| | | | | | | | | | * common.mk (bisect): run git-bisect with miniruby * common.mk (bisect-ruby): run git-bisect with ruby * tool/bisect.sh: script for git-bisect git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: conversion to WCHARnobu2013-08-051-1/+1
| | | | | | | | * win32/win32.c (rb_w32_write_console): use MultiByteToWideChar() for the last step of conversion to WCHAR, to get rid of warnings from rb_enc_find() in miniruby. [ruby-dev:47584] [Bug #8733] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sizes.c: RbConfig::SIZEOFnobu2013-07-291-0/+3
| | | | | | * sizes.c (Init_sizes): define RbConfig::SIZEOF. [Feature #8568] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Change repository of rubyspec from original to nurse'snaruse2013-07-251-1/+1
| | | | | | | | | | | | | Because RubySpec often include tests which fails on CRuby even if RubySpec is a test suite which verifies whether an implementation is compatible with CRuby or not. Moreover recent mspec can't ignore specs guarded with ruby_bug. It breaks running RubySpec with Ruby 1.8 because those guards is used to avoid specs which cause stuck or crash. Therefore we gave up tracking original and dicided to fork. https://github.com/nurse/rubyspec git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_native.h: added.ko12013-07-231-1/+1
| | | | | | | | | | | | | | | Move native thread related lines from vm_core.h. And declare several functions "rb_nativethread_lock_*", manipulate locking. * common.mk: add thread_native.h. * thread.c: add functions "rb_nativethread_lock_*". * thraed.c, thread_[pthread,win32].[ch]: rename rb_thread_lock_t to rb_nativethread_lock_t to make it clear that this lock is for native thraeds, not for ruby threads. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (help): Fix environment variable name and argument.eregon2013-07-201-1/+1
| | | | | | | Actually it can also be a directory or any argument for test/unit runner. [Fixes GH-363] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: Document running a single test [Fixes GH-363]zzak2013-07-201-1/+1
| | | | | | | Patch by Avdi Grimm https://github.com/ruby/ruby/pull/363 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* localeinit.c: splitnobu2013-07-141-6/+7
| | | | | | | | | * localeinit.c (rb_locale_charmap, Init_enc_set_filesystem_encoding): move from encoding.c. * miniinit.c (rb_locale_charmap, Init_enc_set_filesystem_encoding): define miniruby specific functions only. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: rb_w32_udln_find_exe_r,nobu2013-06-301-1/+2
| | | | | | | | rb_w32_udln_find_file_r * win32/win32.c (rb_w32_udln_find_exe_r, rb_w32_udln_find_file_r): codepage independent versions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * benchmark/gc: create a directory to store GC related benchmark.ko12013-06-201-11/+5
| | | | | | | | | | | | * benchmark/gc/gcbench.rb: moved from tool/gcbench.rb. * benchmark/gc/hash(1|2).rb: ditto. * benchmark/gc/rdoc.rb: ditto. * benchmark/gc/null.rb: added. * common.mk: fix rule. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: remove dependency from ruby.ko12013-06-201-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/gcbench.rb: Summary in one line.ko12013-06-191-3/+5
| | | | | | | | * common.mk: separete gcbench-hash to gcbench-hash1 and gcbench-hash2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: add new rules `gcbench-rdoc', `gcbench-hash'.ko12013-06-191-2/+10
| | | | | | | | | | | | | * tool/gcbench.rb: separate GC bench framework and process. * tool/hashbench1.rb, tool/hashbench2.rb: add two types GC bench. hashbench1: many temporal objects (GC by newobj) hashbench2: hash size becomes bigger and bigger (GC by malloc) Two benchs are executed by `gcbench-hash' rule. * tool/rdocbench.rb: separated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: loadpath dependenciesnobu2013-06-171-3/+2
| | | | | | | | | | * common.mk (loadpath.o): $LOAD_PATH should not be affected by the revision number. * common.mk (dmyloadpath.o): depends on nothing except for the source file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in (after-update): non-configure platforms don't neednobu2013-06-141-1/+1
| | | | | | config files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update config filesnobu2013-06-141-2/+2
| | | | | | | | | * .travis.yml (before_script): update config files. * common.mk ($(srcdir)/tool/config.{guess,sub}): use get-config_files. * tool/config_files.rb: split get-config_files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* download config filesnobu2013-06-141-1/+7
| | | | | | | | | * common.mk (update-config_files): rule to download config files. * tool/config.guess, tool/config.sub: remove and download from the upstream. * tool/get-config_files: download config files from GNU. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c: include internal.h.akr2013-06-071-1/+1
| | | | | | | | (mt_state): Use rb_integer_unpack. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/debug.h, vm_trace.c: add rb_postponed_job API.ko12013-05-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Postponed jobs are registered with this API. Registered jobs are invoked at `ruby-running-safe-point' as soon as possible. This timing is completely same as finalizer timing. There are two APIs: * rb_postponed_job_register(flags, func, data): register a postponed job with data. flags are reserved. * rb_postponed_job_register_one(flags, func, data): same as `rb_postponed_job_register', but only one `func' job is registered (skip if `func' is already registered). This change is mostly written by Aman Gupta (tmm1). https://bugs.ruby-lang.org/issues/8107#note-15 [Feature #8107] * gc.c: use postponed job API for finalizer. * common.mk: add dependency from vm_trace.c to debug.h. * ext/-test-/postponed_job/extconf.rb, postponed_job.c, test/-ext-/postponed_job/test_postponed_job.rb: add a test. * thread.c: implement postponed API. * vm_core.h: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (rdoc-bench): add a benchmark ruleko12013-05-211-0/+6
| | | | | | | | | | | | using RDoc. Generate all rdoc related files (same as `make rdoc') in temporary directory and remove them. Excecution time, GC::Profiler and results of GC.stat are printed. * tool/rdocbench.rb: added for `rdoc-bench'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Makefile.in: loadpath from loadpath.cnobu2013-05-161-3/+0
| | | | | | | | | * Makefile.in (loadpath): $LOAD_PATH in miniruby is empty by default now. * win32/Makefile.sub (loadpath): separate for quirky cmd.exe syntax. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* verconf.h.in: template for verconf.hnobu2013-05-161-2/+2
| | | | | | | * template/verconf.h.in: generate verconf.h from the template and rbconfig.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: verconf.h for parallel buildnobu2013-05-161-1/+1
| | | | | | | * common.mk (verconf.h): depend on the timestamp file instead of rbconfig.rb, for parallel build. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: verconf.h dependencynobu2013-05-151-1/+1
| | | | | | | * common.mk (verconf.h): no needs to update always unless rbconfig.rb is updated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk, Makefile.sub: fix build failure on mswinnobu2013-05-151-1/+1
| | | | | | | | | * common.mk (verconf.h): $< cannot be used in explicit rules with nmake. * win32/Makefile.sub (CONFIG_H): create verconf.in instead of verconf.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (verconf.h): fix dependency.nobu2013-05-151-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: shvar_to_cpp in rubynobu2013-05-151-0/+4
| | | | | | | | | | * configure.in: save configured load path values into verconf.in. * common.mk (verconf.h): create from verconf.in with shvar_to_cpp.rb. * tool/shvar_to_cpp.rb: turn shell variables into C macros. [Bug #7959] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* loadpath.c: splitnobu2013-05-151-3/+7
| | | | | | | | | * loadpath.c: split load path staffs from version.c. * dmyloadpath.c: miniruby has no builtin load paths, so verconf.h is not needed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e