Skip to content

Commit 1c3ee4e

Browse files
authored
Remove unecessary copying of priv/include for Rebar 3 deps
1 parent 926455c commit 1c3ee4e

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

lib/mix/lib/mix/tasks/deps.compile.ex

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -206,20 +206,6 @@ defmodule Mix.Tasks.Deps.Compile do
206206

207207
File.mkdir_p!(dep_path)
208208
File.write!(config_path, rebar_config(dep))
209-
210-
# We need to copy/symlink include/priv in case it is
211-
# needed for compiling the dependency itself. Later on
212-
# we will build the whole structure and also symlink/copy
213-
# ebin.
214-
#
215-
# Note both configurations are necessary when using the
216-
# bare compiler with compiler output dir, otherwise includes
217-
# and priv files can't be found. For example, without those
218-
# options, we were unable to compile certifi, which uses
219-
# both parse transforms and reads from priv at compilation.
220-
Mix.Utils.symlink_or_copy(Path.join(opts[:dest], "include"), Path.join(dep_path, "include"))
221-
Mix.Utils.symlink_or_copy(Path.join(opts[:dest], "priv"), Path.join(dep_path, "priv"))
222-
223209
do_command(dep, config, cmd, false, env)
224210
end
225211

0 commit comments

Comments
 (0)