History

build: simplify rules for metal

Zhao Zhili committed 4 years ago

Commit 35420ab1 parent 3c56b9c1 file · +3 −3Browse files

Unified · Split

ffbuild/common.mak+3−3
@@ -113,13 +113,13 @@ $(BIN2CEXE): ffbuild/bin2c_host.o · 112 unmodified lines
113113 $(HOSTLD) $(HOSTLDFLAGS) $(HOSTLD_O) $^ $(HOSTEXTRALIBS)
114114
115115 %.metal.air: %.metal
116− $(METALCC) $(patsubst $(SRC_PATH)/%,$(SRC_LINK)/%,$<) -o $@
116+ $(METALCC) $< -o $@
117117
118118 %.metallib: %.metal.air
119− $(METALLIB) --split-module-without-linking $(patsubst $(SRC_PATH)/%,$(SRC_LINK)/%,$<) -o $@
119+ $(METALLIB) --split-module-without-linking $< -o $@
120120
121121 %.metallib.c: %.metallib $(BIN2CEXE)
122− $(BIN2C) $(patsubst $(SRC_PATH)/%,$(SRC_LINK)/%,$<) $@ $(subst .,_,$(basename $(notdir $@)))
122+ $(BIN2C) $< $@ $(subst .,_,$(basename $(notdir $@)))
123123
124124 %.ptx: %.cu $(SRC_PATH)/compat/cuda/cuda_runtime.h
125125 $(COMPILE_NVCC)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t