Skip to content

Commit

Permalink
contrib/gen_manual: Allow caller to set CXX_FOR_BUILD for gen_manual.
Browse files Browse the repository at this point in the history
This way, in a cross-build of lz4, you can set CXX_FOR_BUILD to a
native compiler that can produce a gen_manual executable to run at
build-time.

fix lz4#1240
  • Loading branch information
Taylor R Campbell committed Jun 14, 2023
1 parent 12d989f commit 8d9668d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/gen_manual/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ endif
.PHONY: default
default: gen_manual

CXX_FOR_BUILD = $(CXX)
gen_manual: gen_manual.cpp
$(CXX) $(FLAGS) $^ -o $@$(EXT)
$(CXX_FOR_BUILD) $(FLAGS) $^ -o $@$(EXT)

$(LZ4MANUAL) : gen_manual $(LZ4API)
echo "Update lz4 manual in /doc"
Expand Down

0 comments on commit 8d9668d

Please sign in to comment.