summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-16 09:22:43 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-16 09:22:43 +0000
commit5b85fbd95b68704e62590ca1c2dde5d815205f65 (patch)
tree85e8517fe78b84f3c27f14b2d4e3374422291e90
parente13603442ccc44f73f89e54b550d0466e16c82b7 (diff)
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rwxr-xr-xtool/update-deps8
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a0de7166a9b..59682c38d8e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Nov 16 18:22:18 2014 Eric Wong <e@80x24.org>
+
+ * tool/update-deps: warning to disable ccache
+
Sun Nov 16 13:11:35 2014 Tanaka Akira <akr@fsij.org>
* common.mk (CCAN_LIST_INCLUDES): Unused variable removed.
diff --git a/tool/update-deps b/tool/update-deps
index 8e27f8a510f..c2caa547023 100755
--- a/tool/update-deps
+++ b/tool/update-deps
@@ -6,6 +6,9 @@
# 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'
$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)
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
end
run
+if $i_not_found
+ warn "missing *.i files, see help in #$0 and ensure ccache is disabled"
+end