ffmpeg | branch: master | Zhao Zhili <quinkbl...@foxmail.com> | Mon Dec 20 
17:09:09 2021 +0800| [35420ab7fd76bdcf43a2f671c39a2555a5fba488] | committer: 
Aman Karmani

build: simplify rules for metal

Signed-off-by: Aman Karmani <a...@tmm1.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=35420ab7fd76bdcf43a2f671c39a2555a5fba488
---

 ffbuild/common.mak | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ffbuild/common.mak b/ffbuild/common.mak
index e79b509425..c13148f476 100644
--- a/ffbuild/common.mak
+++ b/ffbuild/common.mak
@@ -113,13 +113,13 @@ $(BIN2CEXE): ffbuild/bin2c_host.o
        $(HOSTLD) $(HOSTLDFLAGS) $(HOSTLD_O) $^ $(HOSTEXTRALIBS)
 
 %.metal.air: %.metal
-       $(METALCC) $(patsubst $(SRC_PATH)/%,$(SRC_LINK)/%,$<) -o $@
+       $(METALCC) $< -o $@
 
 %.metallib: %.metal.air
-       $(METALLIB) --split-module-without-linking $(patsubst 
$(SRC_PATH)/%,$(SRC_LINK)/%,$<) -o $@
+       $(METALLIB) --split-module-without-linking $< -o $@
 
 %.metallib.c: %.metallib $(BIN2CEXE)
-       $(BIN2C) $(patsubst $(SRC_PATH)/%,$(SRC_LINK)/%,$<) $@ $(subst 
.,_,$(basename $(notdir $@)))
+       $(BIN2C) $< $@ $(subst .,_,$(basename $(notdir $@)))
 
 %.ptx: %.cu $(SRC_PATH)/compat/cuda/cuda_runtime.h
        $(COMPILE_NVCC)

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to