Skip to content
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

feat(rofl/build): Set x86_64-unknown-linux-gnu target for Localnet build #285

Merged
merged 3 commits into from
Sep 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmd/rofl/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ var (
ctx := context.Background()
conn, err := connection.Connect(ctx, npa.Network)
if err != nil {
break // Autodetection failed.
cobra.CheckErr(fmt.Errorf("unable to autodetect build mode, please provide --mode flag manually: failed to connect to GRPC endpoint: %v", err))
}

params, err := conn.Consensus().Registry().ConsensusParameters(ctx, consensus.HeightLatest)
if err != nil {
break // Autodetection failed.
cobra.CheckErr(fmt.Errorf("unable to autodetect build mode, please provide --mode flag manually: failed to get consensus parameters: %v", err))
}

if params.DebugAllowTestRuntimes {
Expand Down Expand Up @@ -110,7 +110,7 @@ var (

// First build for the default target.
fmt.Println("Building ELF binary...")
elfPath, err := cargo.Build(true, "", 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
Loading