Skip to content

support for macOS and Windows #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
cc70341
windows compatibility part 1, untested
gerwin3 Jan 7, 2025
aedb57e
add ci
gerwin3 Jan 7, 2025
c0822fe
ci: fix step name
gerwin3 Jan 7, 2025
43ee326
unset HAVE_ENDIAN_H for macos
gerwin3 Jan 7, 2025
fffd153
todo to fix this multiplatform issue
gerwin3 Jan 7, 2025
7d9ebfe
adding macos (untested)
gerwin3 Jan 7, 2025
8909585
add python script to generater config flags
gerwin3 Jan 7, 2025
6fef789
fixed issues in build.zig (macos build should work)
gerwin3 Jan 8, 2025
b82a3eb
switch on os in outer call to satisfy comptime
gerwin3 Jan 8, 2025
c1ffe88
remove Zig mainline from ci (it is unstable)
gerwin3 Jan 8, 2025
e97188e
ci: fix typo in zig version
gerwin3 Jan 8, 2025
16b7258
zig.build now includes windows
gerwin3 Jan 8, 2025
0debb01
disable autocrlf on windows since it breaks build
gerwin3 Jan 8, 2025
2b7ef7b
windows fixes
gerwin3 Jan 8, 2025
7927830
fix windows ilog2.c exception
gerwin3 Jan 8, 2025
97d5018
set HAVE_STRNLEN=1 on windows
gerwin3 Jan 8, 2025
a7bcc1d
build.zig: windows fix some symbols msvc does not have
gerwin3 Jan 8, 2025
c7708a6
build.zig: windows fixes
gerwin3 Jan 8, 2025
4b92aaa
Revert "build.zig: windows fix some symbols msvc does not have"
gerwin3 Jan 8, 2025
d226c53
Revert "build.zig: windows fixes"
gerwin3 Jan 8, 2025
02ae5df
force ABI msvc on windows
gerwin3 Jan 8, 2025
191358c
ci.yaml: fix zig msvc abi for windows target
gerwin3 Jan 8, 2025
0555070
ci.yaml: fix type includes -> include
gerwin3 Jan 8, 2025
67b555d
build.zig: try dynamic linking on mscv
gerwin3 Jan 8, 2025
f2356d2
remove dynamic linkage since it is already the case
gerwin3 Jan 8, 2025
d8fea79
use _fileno over fileno on Windows (fileno is deprecated)
gerwin3 Jan 9, 2025
7483d3c
update readme
gerwin3 Jan 9, 2025
632a8dd
readme: fix Zig versions typo
gerwin3 Jan 9, 2025
f669229
windows changes from @Banacial
gerwin3 Apr 7, 2025
15369d5
use default mingw libc instead of msvc target abi
gerwin3 Apr 8, 2025
de2d19a
fix incorrect branch for MSVC int defines which should not hit for mingw
gerwin3 Apr 8, 2025
a24dd44
Merge branch 'allyourcodebase:master' into master
gerwin3 Apr 8, 2025
2564647
readme, ci: update windows support and bump to zig 0.14.0
gerwin3 Apr 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* -text
/version -merge
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ci

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

jobs:
build:
name: build / ${{ matrix.os }} / zig ${{ matrix.zig-version }}

strategy:
fail-fast: false
matrix:
zig-version: ["0.14.0"]
os: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Zig
uses: mlugg/setup-zig@v1
with:
version: ${{ matrix.zig-version }}

- name: Build
run: zig build --release=fast --summary all
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
This is a fork of [NASM](https://nasm.us/), packaged for Zig. Unnecessary files
# NASM

This is NASM, packaged for [Zig](https://ziglang.org/). Unnecessary files
have been deleted, and the build system has been replaced with `build.zig`.

Original README follows:
## Support

| OS | Status |
|---------|--------|
| Linux | ✅ |
| macOS | ✅ |
| Windows | ✅ |

| Zig version | Status |
|-------------|--------|
| zig 0.14.0 | ✅ |

This is a fork of [NASM](https://nasm.us/), packaged for Zig.

## Original README

----------------------------------------------------------------------------

Expand Down
Loading