Skip to content

Commit f9451cc

Browse files
committed
clang.mak: return weak assignment of clang
I thought make assigns default values for CC/CXX, but it appears not always true.
1 parent 5654ad9 commit f9451cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: fdpp/clang.mak

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ else
1010
$(error binutils-x86-64-linux-gnu not installed)
1111
endif
1212
endif
13+
14+
CC ?= clang
15+
CXX ?= clang++
1316
CLANG_VER := $(shell $(CXX) --version 2>&1 | head -n 1 | grep clang | \
1417
sed -E 's/.+ version ([^.]+)\.[^.]+\.[^ ]+.*/\1/')
1518
ifeq ($(CLANG_VER),)

0 commit comments

Comments
 (0)