Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 523 Bytes

File metadata and controls

43 lines (30 loc) · 523 Bytes

sys: System module

local sys = require "sys"
sys.os

"linux", "macos" or "windows".

sys.arch

"x86_64" or "aarch64".

sys.libc

"musl" or "gnu". Note that libc is "lua" when using the pure Lua implementation of LuaX.

sys.exe

Extension of executable files on the platform ("" or ".exe").

sys.so

Extension of shared libraries on the platform (".so", ".dylib" or ".dll").

sys.name

Name of the platform.