aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2015-03-31 18:02:50 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-03-31 18:02:50 +0000
commitc8010a1fd1629e7dcf757e1903d4ad7cce83102c (patch)
tree842ec690f10f9bacbf1e68ae614c3db1672d8c2c
parentede72c15b2a94c6b899df44c330bc35205615ca0 (diff)
parente871c03af3eab5a0854f86ab900cb3cda8d6c81b (diff)
downloadndk-c8010a1fd1629e7dcf757e1903d4ad7cce83102c.tar.gz
Merge "Remove trailing / in project path for windows"
-rw-r--r--build/core/build-local.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/core/build-local.mk b/build/core/build-local.mk
index 384ffb779..57d986552 100644
--- a/build/core/build-local.mk
+++ b/build/core/build-local.mk
@@ -78,11 +78,11 @@ ifeq ($(HOST_OS),windows)
# $(dir C:/foo) -> C:/ (correct)
# $(dir C:\foo) -> C:\ (correct)
#
-host-dir-parent = $(strip \
+host-dir-parent = $(patsubst %/,%,$(strip \
$(eval __host_dir_node := $(patsubst %/,%,$(subst \,/,$1)))\
$(eval __host_dir_parent := $(dir $(__host_dir_node)))\
$(filter-out $1,$(__host_dir_parent))\
- )
+ ))
else
host-dir-parent = $(patsubst %/,%,$(dir $1))
endif