Skip to content

Commit

Permalink
Update lib/bundlex/platform.ex
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Pryc <[email protected]>
  • Loading branch information
mat-hek and Noarkhh authored Jan 3, 2024
1 parent 0721039 commit 9dafbd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/bundlex/platform.ex
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ defmodule Bundlex.Platform do
def get_target!() do
case System.fetch_env("NERVES_APP") do
{:ok, _app} -> :nerves
:error -> get_host!()
:error ->
IO.warn("Crosscompilation supported only for Nerves systems, assuming host's platform")
get_host!()
end
end
end
Expand Down

0 comments on commit 9dafbd6

Please sign in to comment.