mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 19:29:18 +00:00
More safe detection of cygwin path.
This commit is contained in:
parent
1fbc651bf3
commit
790f13a689
@ -131,7 +131,7 @@ vpath %.s $(CONTIKI_CPU)/hal/micro/cortexm3
|
||||
|
||||
ifdef IAR
|
||||
# Check if we are in cygwin environment, so we must have paths like /cygdrive/c/... (checking TERM doesn't always work.)
|
||||
ifneq ($(shell ls /cygdrive 2>/dev/null),)
|
||||
ifneq (,$(findstring cygdrive,$(shell pwd)))
|
||||
${info Cygwin detected.}
|
||||
SEDCOMMAND = sed -e '1s,\($(OBJECTDIR)\\$*\)\.o: \(.\):,\1.o : /cygdrive/\l\2,g' -e '1!s,\($(OBJECTDIR)\\$*\)\.o: \(.\):, /cygdrive/\l\2,g' -e 's,\\\([^ ]\),/\1,g' -e 's,$$, \\,' -e '$$s, \\$$,,' < $(@:.o=.P) > $(@:.o=.d)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user