Skip to content

Commit 7d01c20

Browse files
committed
Add platform using macro back to fix nerves_toolchain_ctng error
This is a partial revert of e0e249d.
1 parent a3b4194 commit 7d01c20

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/nerves/package/platform.ex

+11
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,15 @@ defmodule Nerves.Package.Platform do
6666
artifact to the local build_path location.
6767
"""
6868
@callback build_path_link(package :: Nerves.Package.t()) :: build_path_link :: String.t()
69+
70+
# Deprecated. Avoid using in new code.
71+
#
72+
# This is used in nerves_toolchain_ctng and can't be removed without breaking
73+
# the toolchain integration.
74+
defmacro __using__(_) do
75+
quote do
76+
@behaviour Nerves.Artifact.BuildRunner
77+
@behaviour Nerves.Package.Platform
78+
end
79+
end
6980
end

0 commit comments

Comments
 (0)