Skip to content

Commit

Permalink
add option for setting environment variables to rust compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
hansihe committed Dec 8, 2017
1 parent 06a30fc commit fab43dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustler_mix/lib/mix/tasks/compile.rustler.ex
Expand Up @@ -51,7 +51,7 @@ defmodule Mix.Tasks.Compile.Rustler do
compile_return = System.cmd(cmd_bin, args, [
cd: crate_full_path,
stderr_to_stdout: true,
env: [{"CARGO_TARGET_DIR", target_dir}],
env: [{"CARGO_TARGET_DIR", target_dir} | Keyword.get(config, :env, [])],
into: IO.stream(:stdio, :line),
])

Expand Down

0 comments on commit fab43dc

Please sign in to comment.