Before:
main.o: main.c ../include/lib\test.h
After:
main.o: main.c ../include/lib/test.h
Fixes PR38877
|  Differential  D51847  
Print correctly dependency paths on Windows Authored by xbolva00 on Sep 10 2018, 12:23 AM. 
Details Before: After: Fixes PR38877 
Diff Detail 
 Event TimelineComment Actions I mean in practice. What command do i run to hit this and what will the Comment Actions Alright I see it. The reason I'm asking is because after your change you're now printing main.o: main.c ../include/lib/test.h. But I wonder if you should instead be printing main.o: main.c ..\include\lib\test.h. It seems like paths that we show to the user should be in the native path style. 
 Comment Actions Possibly, or should we follow GGC behavior here? GCC prints main.o: main.c ../include/lib/test.h. But conversion to native paths sounds fine for me as well. Comment Actions clang-cl in general tries to do the thing that makes native Windows developers the most comfortable, while gcc in general tries to do the thing that makes Unix developers most comfortable. So I think we should probably use \ here. If anyone complains we can revisit. | ||||||
This looks like a dangling reference -- undefined behavior.