kiwi/huawei-sync-support-for-building-with-clang.patch
luofeng14 c918215c9a
support clang build
Signed-off-by: luofeng14 <luofeng13@huawei.com>
2024-02-25 11:02:35 +00:00

27 lines
674 B
Diff

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