Skip to content

Commit

Permalink
Merge pull request #285 from oasisprotocol/matevz/feature/rofl-build-…
Browse files Browse the repository at this point in the history
…debug-x86-flag

feat(rofl/build): Set x86_64-unknown-linux-gnu target for Localnet build
  • Loading branch information
matevz authored Sep 20, 2024
2 parents 88a49cf + 0a4993c commit 0496cc4
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 0496cc4

Please sign in to comment.