aboutsummaryrefslogtreecommitdiffstats
path: root/build-root/Makefile
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2025-02-14 20:53:47 -0500
committerFlorin Coras <florin.coras@gmail.com>2025-02-18 22:56:47 +0000
commitaa4dfccc98dce64393f390201ea49152d2cb9d87 (patch)
tree4169bac0a02456abc5ac75b4dc2dce03e69d2601 /build-root/Makefile
parent8b76a623446129596c7c44c5c65651bfbefb6c2d (diff)
build: make clang the default compiler for build targets
- fixes compiler version for hs-test and other CI jobs which default to CC=cc in make - not all build targets compile successfully with clang (e.g. libmemif, xdp-tools) which are hard-coded to use gcc for now Type: fix Change-Id: I505e67a08687f17fd4e26e1a3c236fb7c54ff49d Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'build-root/Makefile')
-rw-r--r--build-root/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-root/Makefile b/build-root/Makefile
index b62a671d58f..b529acb5b12 100644
--- a/build-root/Makefile
+++ b/build-root/Makefile
@@ -667,7 +667,7 @@ MAKE_PARALLEL_FLAGS ?= $(if $($(PACKAGE)_make_parallel_fails),,-j $(MAKE_PARALLE
# Make command shorthand for packages & tools.
PACKAGE_MAKE = \
- $(MAKE) \
+ $(MAKE) CC=$(CC) \
-C $(PACKAGE_BUILD_DIR) \
$($(PACKAGE)_make_args) \
$(MAKE_PARALLEL_FLAGS)