deplinenoise / tundra

Tundra is a code build system that tries to be accurate and fast for incremental builds
MIT License
438 stars 74 forks source link

WIP on macos universal example (don't merge yet) #330

Closed emoon closed 3 years ago

emoon commented 3 years ago

Trying to get a macos universal sample going. Ref is this https://developer.apple.com/documentation/xcode/building_a_universal_macos_binary

x86_app: main.c
    $(CC) main.c -o x86_app -target x86_64-apple-macos10.12
arm_app: main.c
    $(CC) main.c -o arm_app -target arm64-apple-macos11
universal_app: x86_app arm_app
    lipo -create -output universal_app x86_app arm_app

Hints on getting this working welcome :)

deplinenoise commented 3 years ago

I'll take a look soonish

deplinenoise commented 3 years ago

Fixed this up and merged a working version.