Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: rebuild on external extra dep change #49

Merged
merged 2 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions xsnap/makefiles/lin/xsnap-worker.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ ifneq ($(VERBOSE),1)
MAKEFLAGS += --silent
endif

EXTRA_DEPS =

# MODDABLE = $(CURDIR)/../../moddable
BUILD_DIR = $(CURDIR)/../../build
TLS_DIR = $(CURDIR)/../../sources
Expand Down Expand Up @@ -142,6 +144,7 @@ $(OBJECTS): $(SRC_DIR)/xsAll.h
$(OBJECTS): $(SRC_DIR)/xsScript.h
$(OBJECTS): $(SRC_DIR)/xsSnapshot.h
$(OBJECTS): $(INC_DIR)/xs.h
$(OBJECTS): $(EXTRA_DEPS)
$(TMP_DIR)/%.o: %.c
@echo "#" $(NAME) $(GOAL) ": cc" $(<F)
$(CC) $< $(C_OPTIONS) -c -o $@
Expand Down
3 changes: 3 additions & 0 deletions xsnap/makefiles/mac/xsnap-worker.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ ifneq ($(VERBOSE),1)
MAKEFLAGS += --silent
endif

EXTRA_DEPS =

# MODDABLE = $(CURDIR)/../../moddable
BUILD_DIR = $(CURDIR)/../../build
TLS_DIR = $(CURDIR)/../../sources
Expand Down Expand Up @@ -151,6 +153,7 @@ $(OBJECTS): $(SRC_DIR)/xsAll.h
$(OBJECTS): $(SRC_DIR)/xsScript.h
$(OBJECTS): $(SRC_DIR)/xsSnapshot.h
$(OBJECTS): $(INC_DIR)/xs.h
$(OBJECTS): $(EXTRA_DEPS)
$(TMP_DIR)/%.o: %.c
@echo "#" $(NAME) $(GOAL) ": cc" $(<F)
$(CC) $< $(C_OPTIONS) -c -o $@
Expand Down
5 changes: 4 additions & 1 deletion xsnap/sources/xsnap-worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#define SNAPSHOT_SIGNATURE "xsnap 1"
#ifndef XSNAP_VERSION
# error "You must define XSNAP_VERSION in the right Makefile"
#else
// Allows grepping the binary's strings for the version: strings xsnap-worker | grep xsnap_version
char *VERSION = "xsnap_version: " XSNAP_VERSION;
#endif

#ifndef XSNAP_TEST_RECORD
Expand Down Expand Up @@ -338,7 +341,7 @@ int main(int argc, char* argv[])
return E_SUCCESS;
}
else if (!strcmp(argv[argi], "-n")) {
printf("agoric-upgrade-10\n");
printf("deprecated\n");
return E_SUCCESS;
} else {
xsPrintUsage();
Expand Down