From e1e871db1a347686a9b3bb3a162c66d973cc08be Mon Sep 17 00:00:00 2001 From: Po Hu Date: Wed, 14 Apr 2021 17:22:49 +0800 Subject: [PATCH] Do not run "mkdir ./" in codebase root directly Test: grep "mkdir -p \.\/" out/build-*.ninja Bug: 185197550 Change-Id: Ic9568ff91006b0cf362d5b5b105eb25ea3e228a8 --- core/definitions.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/definitions.mk b/core/definitions.mk index b15ce840ce..2951c05626 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -2765,7 +2765,7 @@ endef define _symlink-file $(3): $(1) @echo "Symlink: $$@ -> $(2)" - @mkdir -p $(dir $$@) + @mkdir -p $$(dir $$@) @rm -rf $$@ $(hide) ln -sf $(2) $$@ $(3): .KATI_SYMLINK_OUTPUTS := $(3)