[英]Confused about compile_path in elixir's mix.exs
I am confused about the compile_path
setting in mix.exs. 我对mix.exs中的compile_path
设置感到困惑。 With a setting like below: 设置如下:
defmodule MyProject.Mixfile do
use Mix.Project
def project do
[ app: :my_project,
version: "0.0.1",
elixir: "~> 0.12.0",
deps: deps,
escript_main_module: MyProject,
compile_path: "ebing/ew/ebin"]
end
# Configuration for the OTP application
def application do
[]
end
# Returns the list of dependencies in the format:
# { :foobar, git: "https://github.com/elixir-lang/foobar.git", tag: "0.1" }
#
# To specify particular versions, regardless of the tag, do:
# { :barbat, "~> 0.1", github: "elixir-lang/barbat" }
defp deps do
[]
end
end
With the compile_path and after running mix compile
I still cannot find the directory ebing/we/ebin. 使用compile_path并运行mix compile
我仍然找不到目录ebing / we / ebin。 I also tried making the directory first but then it is still empty. 我也尝试过先创建目录,但随后它仍然是空的。 I also tried mix compile --force
and it still builds in the default directory. 我还尝试了mix compile --force
,它仍然在默认目录中构建。
Can someone help with the understanding of the compile_path
setting ? 有人可以帮助您了解compile_path
设置吗?
The :compile_path
option is no longer supported. :compile_path
选项不再受支持。 Mix will always compile to _build
. Mix将始终编译为_build
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.