Skip to content

Commit 0a4993c

Browse files
committed
build rofl: Use x86_64-unknown-linux-musl target
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.
1 parent c6ddc13 commit 0a4993c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/rofl/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var (
110110

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

0 commit comments

Comments
 (0)