Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ninja mkdir elision doesn't handle non-canonical paths #114

Open
danw opened this issue Apr 28, 2017 · 1 comment
Open

Ninja mkdir elision doesn't handle non-canonical paths #114

danw opened this issue Apr 28, 2017 · 1 comment

Comments

@danw
Copy link
Collaborator

danw commented Apr 28, 2017

I'll take a look at this next week, but logging this before I forget:

test: a/b/../c

a/b/../c:
	@mkdir -p $(dir $@)
	touch a/b/../c

Ninja canonicalizes the path before making the directories, so only a is created. In make, mkdir -p a/b/../c would create a and a/b.

@danw danw changed the title Ninja mkdir ellison doesn't handle non-canonical paths Ninja mkdir elision doesn't handle non-canonical paths Apr 28, 2017
@jkwak-work
Copy link

Is this issue resolved?
I believe this is an issue I am having on a certain machine.
When "LOCAL_MODULE_RELATIVE_PATH" is set to be "../../data/nativetest64/unrestricted", it doesn't create the directory.

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

No branches or pull requests

2 participants