mirror of
https://github.com/processone/ejabberd.git
synced 2024-05-31 21:07:55 +02:00
mix.exs: Dirty workaround to get port_compiler with OTP 27 support
This commit is contained in:
parent
e9b9159d23
commit
c7c3cc10c5
12
mix.exs
12
mix.exs
|
@ -13,7 +13,9 @@ defmodule Ejabberd.MixProject do
|
||||||
erlc_options: erlc_options(),
|
erlc_options: erlc_options(),
|
||||||
erlc_paths: ["asn1", "src"],
|
erlc_paths: ["asn1", "src"],
|
||||||
# Elixir tests are starting the part of ejabberd they need
|
# Elixir tests are starting the part of ejabberd they need
|
||||||
aliases: [test: "test --no-start"],
|
aliases: [
|
||||||
|
test: "test --no-start",
|
||||||
|
"deps.get": ["deps.get", "pc_branch"]],
|
||||||
start_permanent: Mix.env() == :prod,
|
start_permanent: Mix.env() == :prod,
|
||||||
language: :erlang,
|
language: :erlang,
|
||||||
dialyzer: dialyzer(),
|
dialyzer: dialyzer(),
|
||||||
|
@ -409,6 +411,14 @@ defmodule Ejabberd.MixProject do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
defmodule Mix.Tasks.PcBranch do
|
||||||
|
use Mix.Task
|
||||||
|
def run(_) do
|
||||||
|
command = "find deps -name rebar.config.script -exec sed -i 's/AppendList..pc/AppendList\(\[{pc, {git, \"https:\\/\\/github.com\\/blt\\/port_compiler.git\", {branch, \"otp-27\"}}}/g' {} ';' "
|
||||||
|
:os.cmd(to_charlist(command))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
defmodule Mix.Tasks.Compile.Asn1 do
|
defmodule Mix.Tasks.Compile.Asn1 do
|
||||||
use Mix.Task
|
use Mix.Task
|
||||||
alias Mix.Compilers.Erlang
|
alias Mix.Compilers.Erlang
|
||||||
|
|
Loading…
Reference in New Issue
Block a user