Skip to content

ParseDepends: keep Windows drive-letter paths in depfiles - #4904

Open
r3wretrhy wants to merge 1 commit into
SCons:masterfrom
r3wretrhy:fix-parsedepends-windows-drive
Open

r3wretrhy wants to merge 1 commit into
SCons:masterfrom
r3wretrhy:fix-parsedepends-windows-drive

Conversation

@r3wretrhy

Copy link
Copy Markdown

Environment.ParseDepends split each make-style depfile line on the first colon. A Windows line such as C:\build\foo.o: C:\src\foo.c was therefore treated as target C and the rest as dependencies.

Skip colons that are drive letters (C:\ / C:/) and keep the existing target.split() / depends.split() behaviour for Unix-style files.

The added unit test fails on the unpatched tree and passes with the change.

Tested: python runtest.py SCons/EnvironmentTests.py

@mwichmann

Copy link
Copy Markdown
Collaborator

This seems a valid concern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants