# The development version of clang is distributed as the 'clang' binary,
# while stable/released versions have a version number attached.
# Pin the default clang to a stable version.
-CLANG ?= clang-17
-STRIP ?= llvm-strip-17
-OBJCOPY ?= llvm-objcopy-17
-CFLAGS := -O2 -g -Wall -Werror $(CFLAGS)
+CLANG ?= clang-20
+STRIP ?= llvm-strip-20
+OBJCOPY ?= llvm-objcopy-20
+CFLAGS := -O2 -g -Wall -Werror -mcpu=v2 $(CFLAGS)
CI_KERNEL_URL ?= https://github.com/cilium/ci-kernels/raw/master/
VERSION := $(shell cat ${REPODIR}/testdata/docker/VERSION)
TARGETS := \
- testdata/loader-clang-11 \
testdata/loader-clang-14 \
+ testdata/loader-clang-17 \
testdata/loader-$(CLANG) \
testdata/manyprogs \
testdata/btf_map_init \
volatile int ctx = 0;
// 32 bytes wide results in a .rodata.cst32 section.
-#define values \
- (uint64_t[]) { \
- 0x0, 0x1, 0x2, 0x3 \
- }
+#define values (uint64_t[]){0x0, 0x1, 0x2, 0x3}
int i;
for (i = 0; i < 3; i++) {