mpiannucci / hello-zig

Test project for integrating zig with ios, android, macos, etc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hello Zig

Attempt at getting a zig library compiled for use on ios and other platforms

Building

Using the zig build script (DOESNT WORK FOR IOS YET):

IPHONEOS_DEPLOYMENT_TARGET=9.0 zig build

Manually build for ios:

bash build_ios_fat_lib.sh

Then open Hello Zig/HelloZig.xcproject and build for ios from there

NOTES

  • The build script wont work cross compiling for ios, but build-lib directly does.. no idea why yet, looks like a linker issue.
  • Use https://github.com/mpiannucci/zig until the changes I made to enable ios support are pushed upstream

About

Test project for integrating zig with ios, android, macos, etc


Languages

Language:Swift 48.2%Language:Zig 43.4%Language:Shell 6.1%Language:C 2.3%