Skip to content

Commit

Permalink
build rofl: Use x86_64-unknown-linux-musl target
Browse files Browse the repository at this point in the history
In order to be compatible with alpine linux builds we use in
our containers, the target needs to be built for musl instead
of gnu.
  • Loading branch information
matevz committed Sep 12, 2024
1 parent 98051cf commit c7dd62f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/rofl/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ var (

// First build for the default target.
fmt.Println("Building ELF binary...")
elfPath, err := cargo.Build(true, "x86_64-unknown-linux-gnu", features)
elfPath, err := cargo.Build(true, "x86_64-unknown-linux-musl", features)
if err != nil {
cobra.CheckErr(fmt.Errorf("failed to build ELF binary: %w", err))
}
Expand Down

0 comments on commit c7dd62f

Please sign in to comment.