Hi team,

I'm developing on a Mac and deploying/running in production on Linux.

Because cross compilation currently doesn't work, I've added a simple 
Docker run
script that does a mix release in order to create a Linux runnable output.

Currently it's not clear that this mix release is targeting Linux and 
sometimes I 'mix'
the releases when I want to do a quick test on the Mac (which fails to 
execute)
and on occasion I remove the _build folder to ensure I'm not messing up 
compilation/releases.

Currently I'm solving this problem by using `mix release --path ...` in the 
Docker script to add /linux/ as a sub path in the _build folder and stay 
clear of the Mac output.

I was dabbling a little bit into Rust the other day and saw that their 
`cargo build --release`
when cross compiling adds the triple target in the path like so:
`/target/x86_64-pc-windows-gnu/debug/`

It would be handy to have a triple target folder in the path as well for 
Elixir
either as a default or as a mix.exs -> releases: option
(I know a default would likely break things, so a releases option might be 
better)

Especially if Elixir ever supports cross compilation being able to 
distinguish between
the _build sub folders would be a benefit.

Thank you for consideration


-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/da2cd65f-1008-45dd-b85f-26e627a3f6cbn%40googlegroups.com.

Reply via email to