Skip to content

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

Open

Description

@danw

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.

Activity

  1. changed the title [-]Ninja mkdir ellison doesn't handle non-canonical paths[/-] [+]Ninja mkdir elision doesn't handle non-canonical paths[/+] on Apr 28, 2017
  2. jkwak-work commented on Apr 22, 2021

    @jkwak-work

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions