summaryrefslogtreecommitdiff
path: root/common.mk
AgeCommit message (Collapse)Author
2014-11-06reaply r48278nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-06Revert r48278 "common.mk: update unicode data only if BASERUBY is available"naruse
Moreover its error "make[1]: *** No rule to make target `lib/unicode_normalize/tables.rb', needed by `srcs-lib'. Stop." is not a good error message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-05common.mk: update unicode data only if BASERUBY is availablenobu
* common.mk (lib/unicode_normalize/tables.rb): do nothing unless BASERUBY is available. MINIRUBY cannot load extension libraries, so cannot update Unicode data. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-02* rewrite method/block parameter fitting logic to optimizeko1
keyword arguments/parameters and a splat argument. [Feature #10440] (Details are described in this ticket) Most of complex part is moved to vm_args.c. Now, ISeq#to_a does not catch up new instruction format. * vm_core.h: change iseq data structures. * introduce rb_call_info_kw_arg_t to represent keyword arguments. * add rb_call_info_t::kw_arg. * rename rb_iseq_t::arg_post_len to rb_iseq_t::arg_post_num. * rename rb_iseq_t::arg_keywords to arg_keyword_num. * rename rb_iseq_t::arg_keyword to rb_iseq_t::arg_keyword_bits. to represent keyword bitmap parameter index. This bitmap parameter shows that which keyword parameters are given or not given (0 for given). It is refered by `checkkeyword' instruction described bellow. * rename rb_iseq_t::arg_keyword_check to rb_iseq_t::arg_keyword_rest to represent keyword rest parameter index. * add rb_iseq_t::arg_keyword_default_values to represent default keyword values. * rename VM_CALL_ARGS_SKIP_SETUP to VM_CALL_ARGS_SIMPLE to represent (ci->flag & (SPLAT|BLOCKARG)) && ci->blockiseq == NULL && ci->kw_arg == NULL. * vm_insnhelper.c, vm_args.c: rewrite with refactoring. * rewrite splat argument code. * rewrite keyword arguments/parameters code. * merge method and block parameter fitting code into one code base. * vm.c, vm_eval.c: catch up these changes. * compile.c (new_callinfo): callinfo requires kw_arg parameter. * compile.c (compile_array_): check the last argument Hash object or not. If Hash object and all keys are Symbol literals, they are compiled to keyword arguments. * insns.def (checkkeyword): add new instruction. This instruction check the availability of corresponding keyword. For example, a method "def foo k1: 'v1'; end" is cimpiled to the following instructions. 0000 checkkeyword 2, 0 # check k1 is given. 0003 branchif 9 # if given, jump to address #9 0005 putstring "v1" 0007 setlocal_OP__WC__0 3 # k1 = 'v1' 0009 trace 8 0011 putnil 0012 trace 16 0014 leave * insns.def (opt_send_simple): removed and add new instruction "opt_send_without_block". * parse.y (new_args_tail_gen): reorder variables. Before this patch, a method "def foo(k1: 1, kr1:, k2: 2, **krest, &b)" has parameter variables "k1, kr1, k2, &b, internal_id, krest", but this patch reorders to "kr1, k1, k2, internal_id, krest, &b". (locate a block variable at last) * parse.y (vtable_pop): added. This function remove latest `n' variables from vtable. * iseq.c: catch up iseq data changes. * proc.c: ditto. * class.c (keyword_error): export as rb_keyword_error(). * common.mk: depend vm_args.c for vm.o. * hash.c (rb_hash_has_key): export. * internal.h: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-31common.mk: remove dl from EXT_SRCSnobu
* common.mk (EXT_SRCS): remove dl/callback which has been removed at r48217. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-31common.mk: fix Unicode table dependencynobu
* common.mk (.unicode-tables.time): needs Unicode files always, and should update after downloading these files. [ruby-core:66026] [Bug #10461] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-30common.mk: separate updatesnobu
* common.mk (UPDATE_LIBRARIES): separate autogenerated library script from downloaded data files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-30* common.mk: fix for the case ALWAYS_UPDATE_UNICODE=nonaruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-30common.mk: separate Unicode files directorynobu
* common.mk: download Unicode files into separate directory for the version. * tool/downloader.rb (Downloader::Unicode.download): strip version directory. * tool/downloader.rb (Downloader.download): strip directory name if download directory is given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-25template/unicode_norm_gen.tmpl: from tool/unicode_norm_gen.rbnobu
* template/unicode_norm_gen.tmpl: use generic_erb.rb to update if changed and manage timestamp, so that source tree on read-only filesystem works. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-23common.mk: timestamp for update-unicodenobu
* common.mk (.update-unicode.time): timestamp not to download same files twice at one build. [Bug #10415] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-22common.mk: update unicode files every timesnobu
* common.mk (update-unicode): invert dependency to run every times. [ruby-core:65842] [Bug #10415] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-22common.mk: update source treenobu
* common.mk (after-update): update files under source tree. [ruby-core:65840] [Bug #10414] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-22* common.mk (prelude.c): add dependency to LIB_SRCS becauseusa
enc/prelude.rb requires lib/unicode_normalize.rb, and it's also requires lib/unicode_normalize/tables.rb (=LIB_SRCS). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-22* common.mk (build-ext): avoid trying to build dynamic librariesyugui
if configured --with-static-linked-ext. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-22common.mk: Fixed grammar in comment [ci skip]duerst
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-22common.mk: comment on ALWAYS_UPDATE_UNICODE [ci skip]nobu
* common.mk (ALWAYS_UPDATE_UNICODE): comment to how to force always update Unicode data files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-21common.mk: UNICODE_FILESnobu
* common.mk (UNICODE_FILES): revert the rule that Unicode data files depend on downloader target, and add missing dependency of lib/unicode_normalize/tables.rb * common.mk (after-configure): removed as srcdir should be read-only after update. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-21common.mk: Adding explicit creation of directoryduerst
enc/unicode/data because git doesn't handle empty directories. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-21* common.mk: *.txt are also in $(srcdir). see r48059.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-21common.mk: after-configurenobu
* common.mk (after-configure): update Unicode files after configure run. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-21common.mk: split after-updatenobu
* common.mk (after-update): move platform independent targets from Makefile.in. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-20Makefile.in: update unicode files only after update source treenobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-20* common.mk (lib/unicode_normlize/table.rb): enable running (n)makeusa
in non-srcdir. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-20common.mk: disable force download of unicode files by defaultnobu
* tool/downloader.rb: add -a option to always download regardless existing files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-20common.mk: update unicode files every timesnobu
* common.mk (update-unicode): remove -e option to force update every builds. * tool/downloader.rb (Downloader.download): return if ims is nil and target file is existing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-20config.mk: Added missing data files as targets for prerequisite update_unicode.duerst
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-20unicode_norm_gen.rb: get rid of hard coded pathsnobu
* common.mk (lib/unicode_normalize/tables.rb): run at top srcdir. * tool/unicode_norm_gen.rb: add -input and -output options to set InputDataDir and OuputDataDir respectively. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19common.mk: use existing filesnobu
* common.mk (update-unicode): use downloaded files if existing, not to require network connection always. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19add dependencynaruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19common.mk (srcs-enc): generate unicode_normalize/tables.rbnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19common.mk: fix missing quotenobu
* common.mk (lib/unicode_normalize/tables.rb): fix missing quote and script path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19* common.mk: nmake doesn't recognize ${} form. use $() instead.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19common.mk: Added a rule to generate lib/unicode_normalize/tables.rb.duerst
This rule still needs to be integrated into the overall make process. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-13common.mk: update-gems for older BASERUBYnobu
* common.mk (update-gems): chdir to the target directory and then add the tool directory to load paths, for older BASERUBY. [Bug #10372][ruby-core:65630] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-13Revert r47899nobu
* common.mk: $(srcdir)/../tool is an invalid path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-13* common.mk: use relative load path for bundled_gems directory.hsbt
[Bug #10372][ruby-core:65630] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-30common.mk: mark PHONY targetsnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-30common.mk: update only non-existing filesnobu
* common.mk (update-config_files): update only non-existing files, and get rid of trying to download existing files every time. gitweb does not send Last-Modified header. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-30* common.mk: fixed broken reference of update-config_files taskhsbt
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-28downloader.rbnobu
* configure.in: use tool/downloader.rb directly. * tool/get-config_files: no longer used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-28tool/downloader.rb: split particular sitesnobu
* tool/downloader.rb (Downloader): split particular sites from the main class. * tool/downloader.rb (Downloader.download): show messages if verbose mode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-28common.mk: Created new target update-unicode to downloadduerst
some Unicode data files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-23common.mk: update-gemsnobu
* common.mk (update-gems): update bundled gem files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-10* common.mk (encs enc trans libencs libenc libtrans): force to runusa
enk.mk because common.mk does not know the dependency, but enk.mk knows. [ruby-dev:48530] [Bug #10220] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-02* test/runner.rb: reporting test coverage for test-all with COVERAGE env.hsbt
[Feature #10189][ruby-core:64681] * Makefile.in: added task for coverage report. * common.mk: added definition of forked simplecov url. * .gitignore: ignored coverage directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-29string.c: remove vm_core.h dependency [ruby-core:64627]normal
* string.c: revert part of r47311, add rb_vm_fstring_table(), remove vm_core.h dependency. [ruby-core:64627] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-29string.c: move frozen_strings table to rb_vm_tnormal
Cleanup in case MVM development proceeds. * string.c: remove static frozen_strings * string.c (Init_frozen_strings): new function * string.c (rb_fstring): remove check for frozen strings, use per-VM table * string.c (rb_str_free): use per-VM table * string.c (Init_String): use per-VM table * vm_core.h (rb_vm_t): add frozen_strings table * internal.h (Init_frozen_strings): new function prototype * eval.c (ruby_setup): call Init_frozen_strings [Feature #10182] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-22tool/vcs.rb: no time.rbnobu
* common.mk (Doxyfile): revert r43888, not to require preinstalled ruby. [ruby-core:64488] [Bug #10161] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-18sprintf.c: rational 'f' formatnobu
* sprintf.c (rb_str_format): support rational 'f' format. [ruby-core:64382] [Bug #10136] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e