Skip to content

Commit

Permalink
Pass ENVs in to make install syscall
Browse files Browse the repository at this point in the history
  • Loading branch information
froch committed Jul 26, 2024
1 parent 6684ca9 commit 0f40105
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def install_libwasmvm
end

def compile_and_install_xiond
system "make", "install"
ledger_enabled = ENV["LEDGER_ENABLED"] == "true"
link_statically = ENV["LINK_STATICALLY"] == "true"
system "make", "install", "LEDGER_ENABLED=#{ledger_enabled}", "LINK_STATICALLY=#{link_statically}"
bin.install "#{ENV.fetch("GOPATH", nil)}/bin/xiond"
end

Expand Down

0 comments on commit 0f40105

Please sign in to comment.