Code Monkey home page Code Monkey logo

zig-build-lua's Introduction

use zig to compile lua

Easily cross-compile lua executable files for different platforms, without the need for mingw, gcc and other tools.

Compile

zig build

This whill cross-compile all support platform. Output files are in the zig-out directory.

[4.0K]  zig-out/
├── [4.0K]  aarch64-linux
│   └── [3.0M]  lua
├── [4.0K]  aarch64-macos
│   └── [418K]  lua         
├── [4.0K]  x86_64-linux-gnu
│   └── [1.8M]  lua
├── [4.0K]  x86_64-linux-musl
│   └── [2.3M]  lua
└── [4.0K]  x86_64-windows
    ├── [572K]  lua.exe
    └── [1.6M]  lua.pdb

References

使用 zig 编译 lua

方面跨平台交叉编译出 lua 可执行文件,无需 mingw,gcc 等工具。

编译

zig build

交叉编译,可以一次性编译出所有平台的 Lua 可执行文件。输出文件在 zig-out 目录。

[4.0K]  zig-out/
├── [4.0K]  aarch64-linux
│   └── [3.0M]  lua
├── [4.0K]  aarch64-macos
│   └── [418K]  lua         
├── [4.0K]  x86_64-linux-gnu
│   └── [1.8M]  lua
├── [4.0K]  x86_64-linux-musl
│   └── [2.3M]  lua
└── [4.0K]  x86_64-windows
    ├── [572K]  lua.exe
    └── [1.6M]  lua.pdb

参考

zig-build-lua's People

Contributors

hanxi avatar

Stargazers

张传峰 avatar  avatar  avatar Thomas Berg avatar Xavier Wang avatar Steven Johnson avatar Brynne Taylor avatar 华仔 avatar  avatar 球球 avatar Louis avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.