繁体   English   中英

对Elixir的mix.exs中的compile_path感到困惑

[英]Confused about compile_path in elixir's mix.exs

我对mix.exs中的compile_path设置感到困惑。 设置如下:

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

使用compile_path并运行mix compile我仍然找不到目录ebing / we / ebin。 我也尝试过先创建目录,但随后它仍然是空的。 我还尝试了mix compile --force ,它仍然在默认目录中构建。

有人可以帮助您了解compile_path设置吗?

:compile_path选项不再受支持。 Mix将始终编译为_build

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM