Skip to content

Commit

Permalink
util-vinix: Create necessary tmp files for parallel V not to crash
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsuki committed Dec 18, 2023
1 parent 0ff974a commit b46f915
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
3 changes: 2 additions & 1 deletion jinx-config
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ autotools_recursive_regen() {
}

export VMODULES="/tmp/.vmodules"
mkdir -p "${VMODULES}"
mkdir -p "${VMODULES}"/cache
mkdir -p /tmp/v_$(id -u)
16 changes: 4 additions & 12 deletions util-vinix/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,16 @@ override MOUNT_TARGET := $(MOUNT_DIR)/mount
all: $(CHSH_TARGET) $(FETCH_TARGET) $(LSCPU_TARGET) $(MOUNT_TARGET)

$(CHSH_TARGET): $(CHSH_DIR)/*
while ! ( cd $(CHSH_DIR) && VCROSS_COMPILER_NAME="$(CC)" $(V) $(VFLAGS) -cflags "$(CFLAGS)" -os vinix . ); do \
true; \
done
cd $(CHSH_DIR) && VCROSS_COMPILER_NAME="$(CC)" $(V) $(VFLAGS) -cflags "$(CFLAGS)" -os vinix .

$(FETCH_TARGET): $(FETCH_DIR)/*
while ! ( cd $(FETCH_DIR) && VCROSS_COMPILER_NAME="$(CC)" $(V) $(VFLAGS) -cflags "$(CFLAGS)" -os vinix . ); do \
true; \
done
cd $(FETCH_DIR) && VCROSS_COMPILER_NAME="$(CC)" $(V) $(VFLAGS) -cflags "$(CFLAGS)" -os vinix .

$(LSCPU_TARGET): $(LSCPU_DIR)/*
while ! ( cd $(LSCPU_DIR) && VCROSS_COMPILER_NAME="$(CC)" $(V) $(VFLAGS) -cflags "$(CFLAGS)" -os vinix . ); do \
true; \
done
cd $(LSCPU_DIR) && VCROSS_COMPILER_NAME="$(CC)" $(V) $(VFLAGS) -cflags "$(CFLAGS)" -os vinix .

$(MOUNT_TARGET): $(MOUNT_DIR)/*
while ! ( cd $(MOUNT_DIR) && VCROSS_COMPILER_NAME="$(CC)" $(V) $(VFLAGS) -cflags "$(CFLAGS)" -os vinix . ); do \
true; \
done
cd $(MOUNT_DIR) && VCROSS_COMPILER_NAME="$(CC)" $(V) $(VFLAGS) -cflags "$(CFLAGS)" -os vinix .

clean:
rm -rf $(CHSH_TARGET) $(FETCH_TARGET) $(LSCPU_TARGET) $(MOUNT_TARGET)
Expand Down

0 comments on commit b46f915

Please sign in to comment.