Skip to content

Commit

Permalink
build: simplify rules for metal
Browse files Browse the repository at this point in the history
Signed-off-by: Aman Karmani <[email protected]>
  • Loading branch information
quink-black authored and tmm1 committed Dec 20, 2021
1 parent 3c56b9c commit 35420ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ffbuild/common.mak
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 35420ab

Please sign in to comment.