Skip to content

Commit

Permalink
clang.mak: fix build
Browse files Browse the repository at this point in the history
Dont use `?=` for `CC` as that doesn't override make's internal
definition of `CC`.
  • Loading branch information
stsp committed Jul 28, 2024
1 parent 32381d9 commit 9a43c7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fdpp/clang.mak
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ CROSS_LD ?= ld.bfd
else
CROSS_LD ?= x86_64-linux-gnu-ld
endif
CC ?= clang
# don't use ?= here as that doesn't override make's builtin CC var
CC = clang
CXX = clang++
CLANG_VER := $(shell $(CXX) -v 2>&1 | head -n 1 | \
sed -E 's/.+ version ([^.]+)\.[^.]+\.[^ ]+.*/\1/')
Expand Down

0 comments on commit 9a43c7d

Please sign in to comment.