ruby-changes:36378
From: normal <ko1@a...>
Date: Sun, 16 Nov 2014 18:22:59 +0900 (JST)
Subject: [ruby-changes:36378] normal:r48459 (trunk): tool/update-deps: warning to disable ccache
normal 2014-11-16 18:22:43 +0900 (Sun, 16 Nov 2014) New Revision: 48459 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48459 Log: tool/update-deps: warning to disable ccache I spent several minutes wondering why -save-temps=obj was not taking effect, hopefully this saves somebody else the trouble. Modified files: trunk/ChangeLog trunk/tool/update-deps Index: ChangeLog =================================================================== --- ChangeLog (revision 48458) +++ ChangeLog (revision 48459) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Nov 16 18:22:18 2014 Eric Wong <e@8...> + + * tool/update-deps: warning to disable ccache + Sun Nov 16 13:11:35 2014 Tanaka Akira <akr@f...> * common.mk (CCAN_LIST_INCLUDES): Unused variable removed. Index: tool/update-deps =================================================================== --- tool/update-deps (revision 48458) +++ tool/update-deps (revision 48459) @@ -6,6 +6,9 @@ https://github.com/ruby/ruby/blob/trunk/tool/update-deps#L6 # gcc 4.5 (for -save-temps=obj option) # GNU make (for -p option) # +# Warning: ccache (and similar tools) must be disabled for +# -save-temps=obj to work properly. +# # Usage: # 1. Compile ruby with -save-temps=obj option. # Ex. ./configure debugflags='-save-temps=obj -g' && make all golf @@ -29,6 +32,7 @@ ENV['LC_ALL'] = 'C' https://github.com/ruby/ruby/blob/trunk/tool/update-deps#L32 $opt_fix = false $opt_a = false $opt_actual_fix = false +$i_not_found = false def optionparser op = OptionParser.new @@ -141,6 +145,7 @@ def read_actual_deps(cwd) https://github.com/ruby/ruby/blob/trunk/tool/update-deps#L145 fn_i = fn_o.sub_ext('.i') if !fn_i.exist? warn "not found: #{fn_i}" + $i_not_found = true next end path_o = cwd + fn_o @@ -402,3 +407,6 @@ def run https://github.com/ruby/ruby/blob/trunk/tool/update-deps#L407 end run +if $i_not_found + warn "missing *.i files, see help in #$0 and ensure ccache is disabled" +end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/