make/common/MakeBase.gmk
changeset 55166 2ae056696b15
parent 54380 e297c7bb6469
child 55292 f4b2d5b83ebf
--- a/make/common/MakeBase.gmk	Mon Jun 03 17:14:23 2019 -0700
+++ b/make/common/MakeBase.gmk	Mon Jun 03 10:28:03 2019 +0200
@@ -472,6 +472,22 @@
 endif
 
 ################################################################################
+# FixPathList
+#
+# On Windows, converts a cygwin/unix style path list (colon-separated) into
+# the native format (mixed mode, semicolon-separated). On other platforms,
+# return the path list unchanged.
+################################################################################
+ifeq ($(call isTargetOs, windows), true)
+  FixPathList = \
+      $(subst @,$(SPACE),$(subst $(SPACE),;,$(foreach entry,$(subst :,$(SPACE),\
+      $(subst $(SPACE),@,$(strip $1))),$(call FixPath, $(entry)))))
+else
+  FixPathList = \
+      $1
+endif
+
+################################################################################
 # DependOnVariable
 #
 # This macro takes a variable name and puts the value in a file only if the