Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #203 from foniod/build-alpine314
Browse files Browse the repository at this point in the history
Give the llvm11 feature to redbpf-tools and example-userspace
  • Loading branch information
rsdy authored Oct 24, 2021
2 parents a9b98c2 + 4a25a5b commit 310516e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ jobs:
alpine-314-build-test:
name: Alpine 3.14 (Disabled until LLVM12 support)
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v2
- name: Build host info
Expand All @@ -137,7 +136,7 @@ jobs:
- ubuntu-2104-build-test
- ubuntu-2004-build-test
- ubuntu-1804-build-test
# - alpine-314-build-test
- alpine-314-build-test

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 3 additions & 1 deletion examples/example-userspace/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keywords = ["bpf", "ebpf", "build", "bindgen", "redbpf"]
publish = false

[build-dependencies]
cargo-bpf = { path = "../../cargo-bpf", default-features = false, features = ["build", "llvm12"] }
cargo-bpf = { path = "../../cargo-bpf", default-features = false, features = ["build"] }

[dependencies]
probes = { path = "../example-probes", package = "example-probes" }
Expand All @@ -28,3 +28,5 @@ required-features = ["kernel5_8"] # bpf iterator has been supported since kerne

[features]
kernel5_8 = []
default = ["cargo-bpf/llvm12"]
llvm11 = ["cargo-bpf/llvm11"]
6 changes: 5 additions & 1 deletion redbpf-tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repository = "https://github.com/foniod/redbpf"
publish = false

[build-dependencies]
cargo-bpf = { path = "../cargo-bpf", default-features = false, features = ["build", "llvm12"] }
cargo-bpf = { path = "../cargo-bpf", default-features = false, features = ["build"] }

[dependencies]
probes = { path = "./probes" }
Expand All @@ -16,3 +16,7 @@ tokio = { version = "^1.0.1", features = ["rt", "macros", "signal", "time"] }
futures = "0.3"
getopts = "0.2"
libc = "0.2"

[features]
default = ["cargo-bpf/llvm12"]
llvm11 = ["cargo-bpf/llvm11"]

0 comments on commit 310516e

Please sign in to comment.