@@ -95,7 +95,7 @@ $(BIN)/%_generator.o: $(ROOT_DIR)/correctness/generators/%_generator.cpp $(HALID
9595# In our build files here, we build both kinds of extension for every Generator in the generators/
9696# directory (even though not all are used). As a simplistic way to distinguish between the two
9797# sorts of extensions, we use the unadorned Generator name for AOT extensions, and the Generator name
98- # suffixed with "_stub " for Stub extensions. (TODO: this is unsatisfyingly hackish; better suggestions
98+ # suffixed with "_pystub " for Stub extensions. (TODO: this is unsatisfyingly hackish; better suggestions
9999# would be welcome.)
100100
101101$(BIN ) /PyStubImpl.o : $(ROOT_DIR ) /stub/PyStubImpl.cpp $(HALIDE_DISTRIB_PATH ) /include/Halide.h
@@ -186,21 +186,21 @@ $(BIN)/aot/%.so: $(BIN)/%.py.o $(BIN)/%.a $(BIN)/runtime.a $(BIN)/%.ldscript
186186# Compiling PyStub.cpp, then linking with the generator's .o file, PyStubImpl.o, plus the same libHalide
187187# being used by halide.so.
188188#
189- # Note that we set HALIDE_PYSTUB_MODULE_NAME to $*_stub (e.g. foo_stub ) but
189+ # Note that we set HALIDE_PYSTUB_MODULE_NAME to $*_pystub (e.g. foo_pystub ) but
190190# set HALIDE_PYSTUB_GENERATOR_NAME to the unadorned name of the Generator.
191191$(BIN ) /% _PyStub.o : $(ROOT_DIR ) /stub/PyStub.cpp
192192 @echo Building $@ ...
193193 @mkdir -p $(@D )
194- @$(CXX ) $(CCFLAGS ) -DHALIDE_PYSTUB_MODULE_NAME=$* _stub -DHALIDE_PYSTUB_GENERATOR_NAME=$* -c $< -o $@
194+ @$(CXX ) $(CCFLAGS ) -DHALIDE_PYSTUB_MODULE_NAME=$* _pystub -DHALIDE_PYSTUB_GENERATOR_NAME=$* -c $< -o $@
195195
196- $(BIN ) /stub/% _stub .so : $(BIN ) /% _PyStub.o $(BIN ) /PyStubImpl.o $(BIN ) /% _generator.o $(BIN ) /% _stub .ldscript $(LIBHALIDE )
196+ $(BIN ) /stub/% _pystub .so : $(BIN ) /% _PyStub.o $(BIN ) /PyStubImpl.o $(BIN ) /% _generator.o $(BIN ) /% _pystub .ldscript $(LIBHALIDE )
197197 @echo Building $@ ...
198198 @mkdir -p $(@D )
199- @$(CXX ) $(LDFLAGS ) $(filter-out % .ldscript,$^ ) -shared $(subst % LDSCRIPT% ,$(BIN ) /$* _stub .ldscript,$(PYEXT_LDSCRIPT_FLAG ) ) -o $@
199+ @$(CXX ) $(LDFLAGS ) $(filter-out % .ldscript,$^ ) -shared $(subst % LDSCRIPT% ,$(BIN ) /$* _pystub .ldscript,$(PYEXT_LDSCRIPT_FLAG ) ) -o $@
200200
201201GENERATOR_SRCS =$(shell ls $(ROOT_DIR ) /correctness/generators/* _generator.cpp)
202202GENERATOR_AOT_EXTENSIONS=$(GENERATOR_SRCS:$(ROOT_DIR)/correctness/generators/%_generator.cpp =$(BIN ) /aot/%.so)
203- GENERATOR_STUB_EXTENSIONS=$(GENERATOR_SRCS:$(ROOT_DIR)/correctness/generators/%_generator.cpp =$(BIN ) /stub/%_stub .so)
203+ GENERATOR_STUB_EXTENSIONS=$(GENERATOR_SRCS:$(ROOT_DIR)/correctness/generators/%_generator.cpp =$(BIN ) /stub/%_pystub .so)
204204
205205APPS = $(shell ls $(ROOT_DIR ) /apps/* .py)
206206CORRECTNESS = $(shell ls $(ROOT_DIR ) /correctness/* .py)
0 commit comments