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
113 $(HOSTLD) $(HOSTLDFLAGS) $(HOSTLD_O) $^ $(HOSTEXTRALIBS)113 $(HOSTLD) $(HOSTLDFLAGS) $(HOSTLD_O) $^ $(HOSTEXTRALIBS)
114 114
115%.metal.air: %.metal115%.metal.air: %.metal
116 $(METALCC) $(patsubst $(SRC_PATH)/%,$(SRC_LINK)/%,$<) -o $@116 $(METALCC) $< -o $@
117 117
118%.metallib: %.metal.air118%.metallib: %.metal.air
119 $(METALLIB) --split-module-without-linking $(patsubst $(SRC_PATH)/%,$(SRC_LINK)/%,$<) -o $@119 $(METALLIB) --split-module-without-linking $< -o $@
120 120
121%.metallib.c: %.metallib $(BIN2CEXE)121%.metallib.c: %.metallib $(BIN2CEXE)
122 $(BIN2C) $(patsubst $(SRC_PATH)/%,$(SRC_LINK)/%,$<) $@ $(subst .,_,$(basename $(notdir $@)))122 $(BIN2C) $< $@ $(subst .,_,$(basename $(notdir $@)))
123 123
124%.ptx: %.cu $(SRC_PATH)/compat/cuda/cuda_runtime.h124%.ptx: %.cu $(SRC_PATH)/compat/cuda/cuda_runtime.h
125 $(COMPILE_NVCC)125 $(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