diff --git a/src/cargo_cmd.erl b/src/cargo_cmd.erl index 6d58de7..83945ea 100644 --- a/src/cargo_cmd.erl +++ b/src/cargo_cmd.erl @@ -76,8 +76,7 @@ exec(Command, Path) -> {line, ?MAX_LINE_LENGTH}, use_stdio, hide, - eof, - {env, env()} + eof ], Command1 = lists:flatten(patch_on_windows(Command)), @@ -118,20 +117,6 @@ patch_on_windows(Cmd) -> Cmd end. --spec env() -> [{string(), string()}]. -env() -> - case os:type() of - {unix, darwin} -> - % https://github.com/rust-lang/cargo/issues/3287 - % https://github.com/rust-lang/rust/pull/36574 - [ - {"RUSTFLAGS", - "--codegen link-arg=-flat_namespace --codegen link-arg=-undefined --codegen link-arg=suppress"} - ]; - _ -> - [] - end. - % Ignore dialyzer warnings for finalize and handle_output as the spec % for jsx:decode/2 is broken (does not include incomplete and with_tail) -dialyzer([