aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-06-19 15:42:42 -0700
committerAlexey Ushakov <alexey.v.ushakov@gmail.com>2019-02-15 10:52:57 +0300
commit5bdbbe90bb3b79c0ebbb709aa136520773fb10fa (patch)
tree05c5c7c07fd37ce8359cea7ba0f43667399c9fdc
parentfdf88c9e6e8ecfc374800c2a8bf960ebe7671cea (diff)
downloadjdk8u-5bdbbe90bb3b79c0ebbb709aa136520773fb10fa.tar.gz
Repo creates .git directories with a dangling .git/shallow symlink, which causes a make error: make[1]: *** No rule to make target `/home/build/out/hotspot/.git/shallow', needed by `/home/build/out/build/linux-x86_64-normal-server-release/hotspot/_hotspot.timestamp'. Stop. Prune .git directories along with .hg directories.
-rw-r--r--make/HotspotWrapper.gmk4
1 files changed, 2 insertions, 2 deletions
diff --git a/make/HotspotWrapper.gmk b/make/HotspotWrapper.gmk
index 51437df..99a2b23 100644
--- a/make/HotspotWrapper.gmk
+++ b/make/HotspotWrapper.gmk
@@ -35,8 +35,8 @@ include MakeBase.gmk
default: all
-# Get all files except .hg in the hotspot directory.
-HOTSPOT_FILES := $(shell $(FIND) -L $(HOTSPOT_TOPDIR) -name ".hg" -prune -o -print)
+# Get all files except .hg or .git in the hotspot directory.
+HOTSPOT_FILES := $(shell $(FIND) -L $(HOTSPOT_TOPDIR) -name ".hg" -o -name ".git" -prune -o -print)
# The old build creates hotspot output dir before calling hotspot and
# not doing it breaks builds on msys.