Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Oct 16, 2024
1 parent abaf4a1 commit bef26c7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
[[https://github.com/jiacai2050/zig-cc/actions/workflows/ci.yml][https://github.com/jiacai2050/zig-cc/actions/workflows/ci.yml/badge.svg]]
[[https://github.com/jiacai2050/zig-cc/actions/workflows/zig.yml][https://github.com/jiacai2050/zig-cc/actions/workflows/zig.yml/badge.svg]]
[[https://github.com/jiacai2050/zig-cc/actions/workflows/release.yml][https://github.com/jiacai2050/zig-cc/actions/workflows/release.yml/badge.svg]]
[[https://pypi.org/project/zigcc][https://img.shields.io/pypi/v/zigcc]]
[[https://pypi.org/project/zigcc][https://img.shields.io/pypi/v/zigcc.svg]]

A util script that aims to ease use ~zig cc~ to compile C/C++/Rust/Go programs.
Util scripts aimed at simplifying the use of =zig cc= for compiling C, C++, Rust, and Go programs.

* Why
In most cases, we can use following command to use Zig for compile
Expand All @@ -21,7 +21,7 @@ So this project was born, it will
- Ignore link args when =zig cc= throw errors, hopefully this will make compile successfully, WIP.
* Install
#+begin_src bash
pip install -U zigcc
pip3 install -U zigcc
#+end_src

This will install three executables:
Expand All @@ -34,8 +34,8 @@ This will install three executables:
* Use in GitHub Action
Adding a step to your workflow like this:
#+begin_src yaml
- name: Install ZigCC
uses: jiacai2050/zigcc@main
- name: Install zigcc
uses: jiacai2050/zigcc@v1
with:
zig-version: master
#+end_src
Expand All @@ -46,6 +46,6 @@ There some are env variable to config zigcc:
- =ZIGCC_FLAGS=, space separated flags, pass to zig cc. An example is set this to =-fno-sanitize=undefined= to disable sanitize since they may break your programs. See [[https://nathancraddock.com/blog/zig-cc-undefined-behavior/][Catching undefined behavior with zig cc]]
- =ZIGCC_BLACKLIST_FLAGS=, space separated flags, used to filter flags =zig cc= don't support, such as =-Wl,-dylib= otherwise you could see errors below
#+begin_src bash
= note: error: unsupported linker arg: -dylib
note: error: unsupported linker arg: -dylib
#+end_src
- =ZIGCC_VERBOSE= Set to =1= enable verbose logs.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ build-backend = "hatchling.build"
name = "zigcc"
dynamic = ["version"]
authors = [{name = "Jiacai Liu", email="[email protected]"}]
description = "A util script that aims to ease use `zig cc` to compile C/C++/Rust/Go programs."
description = "Util scripts aimed at simplifying the use of `zig cc` for compiling C, C++, Rust, and Go programs."
readme = "README.md"
keywords = ["zig", "compile", "rust", "cross-compile"]
keywords = ["zig", "compile", "rust", "cross-compile", "go"]
license = "GPL-3.0"
requires-python = ">=3.0.0"
dependencies = [
Expand Down
2 changes: 1 addition & 1 deletion zigcc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import logging
import subprocess

__VERSION__ = '0.1.0'
__VERSION__ = '1.0.0'

UNKNOWN = 0
RUST = 1
Expand Down

0 comments on commit bef26c7

Please sign in to comment.