Skip to content

Commit

Permalink
configure the source version condition for patching
Browse files Browse the repository at this point in the history
  • Loading branch information
smdn committed May 26, 2024
1 parent 2f0d644 commit bc43d85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/highlight/libhighlight.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ $(HIGHLIGHT_SOURCE_ROOT_DIR):
git clone -c advice.detachedHead=false ${HIGHLIGHT_SOURCE_REPO} -b v$(HIGHLIGHT_SOURCE_VERSION) --depth 1 $(HIGHLIGHT_SOURCE_ROOT_DIR) || \
git clone -c advice.detachedHead=false ${HIGHLIGHT_SOURCE_REPO} -b $(HIGHLIGHT_SOURCE_VERSION) --depth 1 $(HIGHLIGHT_SOURCE_ROOT_DIR)

ifeq ($(HIGHLIGHT_SOURCE_VERSION),4.11)
patch -d $(HIGHLIGHT_SOURCE_ROOT_DIR) -p0 < $(HIGHLIGHT_PATCH_DIR)highlight-4.11-remove-using-namespace-std.patch
endif

highlight-src: $(HIGHLIGHT_SOURCE_ROOT_DIR)

Expand Down

0 comments on commit bc43d85

Please sign in to comment.