Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 150a1ca0 authored by Yo Chiang's avatar Yo Chiang
Browse files

Don't call $(my_path_comp) if $(dir $(LOCAL_PATH)) is TOP

So we don't accidentally create phony rules like
`MODULES-IN-: MODULES-IN-` and `MODULES-IN-.: MODULES-IN-*`

Bug: 162918277
Test: m com.android.art
Test: ninja -t browse
Change-Id: Id0656d1b08bc933df57914df162853934352593b
parent 66853bb3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -487,8 +487,10 @@ $(_local_path_target): $(my_register_name)

ifndef $(_local_path_target)
  $(_local_path_target) := true
  ifneq (,$(findstring /,$(_local_path)))
    $(eval $(call my_path_comp,$(_local_path),$(_local_path_target)))
  endif
endif

_local_path :=
_local_path_target :=