Skip to content

Commit

Permalink
clang.mak: return weak assignment of clang
Browse files Browse the repository at this point in the history
I thought make assigns default values for CC/CXX, but it appears
not always true.
  • Loading branch information
stsp committed Jan 2, 2025
1 parent 5654ad9 commit f9451cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fdpp/clang.mak
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ else
$(error binutils-x86-64-linux-gnu not installed)
endif
endif

CC ?= clang
CXX ?= clang++
CLANG_VER := $(shell $(CXX) --version 2>&1 | head -n 1 | grep clang | \
sed -E 's/.+ version ([^.]+)\.[^.]+\.[^ ]+.*/\1/')
ifeq ($(CLANG_VER),)
Expand Down

0 comments on commit f9451cc

Please # to comment.