mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01: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_paths: ["asn1", "src"],
|
||||
# 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,
|
||||
language: :erlang,
|
||||
dialyzer: dialyzer(),
|
||||
@ -409,6 +411,14 @@ defmodule Ejabberd.MixProject do
|
||||
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
|
||||
use Mix.Task
|
||||
alias Mix.Compilers.Erlang
|
||||
|
Loading…
Reference in New Issue
Block a user