From 53ad53556e476961e76c99d14b492250704acccc Mon Sep 17 00:00:00 2001
From: zhoujing <zhoujing106@huawei.com>
Date: Tue, 7 Nov 2023 20:32:54 +0800
Subject: [PATCH] [sync] Support for building with clang
 
cherry-pick from https://gitee.com/openeuler-risc-v/kiwi/commit/b896168af10084bd227918eb1e68cfe34581a635
---
 tools/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/tools/Makefile b/tools/Makefile
index f2ea5d7..126aaa3 100755
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -3,7 +3,7 @@ buildroot = /
 SRCS := $(wildcard *.c)
 PRGS := $(patsubst %.c,%,$(SRCS))
 
-CC = gcc
+CC ?= gcc
 
 all: $(PRGS)
 
-- 
2.42.0
 
