-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cilium, docker: switch to {clang,llvm}-10.0 and externalize build deps #11308
Changes from all commits
a039c99
6b49aae
e7d855b
d2591fb
e15313a
4dd578c
a0956f3
5e662d6
2ad88b1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -20,9 +20,11 @@ LIB := $(shell find $(ROOT_DIR)/bpf -name '*.h') $(BUILD_PERMUTATIONS_DEP) | |||||||||
BPF_C := $(patsubst %.o,%.c,$(BPF)) | ||||||||||
BPF_ASM := $(patsubst %.o,%.s,$(BPF)) | ||||||||||
|
||||||||||
CLANG ?= clang | ||||||||||
LLC ?= llc | ||||||||||
HOSTCC ?= gcc | ||||||||||
CLANG ?= clang | ||||||||||
LLC ?= llc | ||||||||||
Comment on lines
+23
to
+24
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion:
Suggested change
(Personal preference: When I have to append a version number for clang, I usually have to append it for llc as well. Then I can run There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not changing that part, but your suggestion makes sense. I think others like init.sh and the golang loader would be needed as well. Alternatively, one could mount a docker volume to /bin/llc and /bin/clang in the cilium runtime image to test different versions. |
||||||||||
|
||||||||||
HOST_CC ?= gcc | ||||||||||
HOST_STRIP ?= strip | ||||||||||
|
||||||||||
# Define all at the top here so that Makefiles which include this one will hit | ||||||||||
# the 'all' target first (which we expect to be overridden by the includer). | ||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we replace
wget
withcurl
where it's needed and get rid of it?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, the rsync/unzip/curl/wget/zip combo is not quite clear to me yet where it's needed, I'll see to reduce it further.