fpga: tools: RESOLVE_PATH checks for an empty path

Original-commit: ffdce1c3fc229579b9d30afe489d2749c0c956ed
This commit is contained in:
Andrew Moch
2020-07-30 15:00:06 -05:00
committed by Wade Fife
parent 2eb71626fb
commit 77cadca8a9
+2 -2
View File
@@ -6,8 +6,8 @@
# Environment Setup
# -------------------------------------------------------------------
ifeq ($(VIV_PLATFORM),Cygwin)
RESOLVE_PATH = $(subst \,/,$(shell cygpath -aw $(1)))
RESOLVE_PATHS = "$(foreach path,$(1),$(subst \,/,$(shell cygpath -aw $(abspath $(path)))))"
RESOLVE_PATH = $(if $(1),$(subst \,/,$(shell cygpath -aw $(1))))
RESOLVE_PATHS = "$(if $(1),$(foreach path,$(1),$(subst \,/,$(shell cygpath -aw $(abspath $(path))))))"
else
RESOLVE_PATH = $(1)
RESOLVE_PATHS = "$(1)"