Drafter.Native (drafter v0.6.0)

Copy Markdown View Source

Where drafter's compiled native code is: priv/native/<os>-<cpu>, such as darwin-aarch64, linux-x86_64 or windows-x86_64.

The operating system is darwin, linux or windows; the processor is x86_64 or aarch64. Builds for different machines sit side by side in one checkout and each loads its own. The Makefile derives the same folder name from the machine it builds for, including a target given to a cross compiler as -target.

Summary

Functions

Returns the folder name of this machine's native code, such as "linux-x86_64".

Returns the file name of this machine's native code, as a charlist for :erlang.load_nif/2.

Functions

directory()

@spec directory() :: String.t()

Returns the folder name of this machine's native code, such as "linux-x86_64".

path(name)

@spec path(String.t()) :: charlist()

Returns the file name of this machine's native code, as a charlist for :erlang.load_nif/2.