Also, did you use released zig version (0.8. Would you be able to provide a small repro of Win->Mac? I wrote zld (which is our in-house MachO linker) and with a repro I can come up with a solution fairly quickly. Using a Zig CMake toolchain and X11/GL/etc borrowed from Steam Runtime sysroots, it seems like this works pretty well for Windows -> Linux compilation with zig cc.įor Windows -> Mac, we ran into some link errors with the Zig MachO linker and SDL2, and we also had to do some workarounds to get Objective-C compilation working, but we will see about creating tickets for these once we can find some time. Compile our game sources + deps and link statically to SDL2 using CMake.git checkout a fairly bleeding-edge SDL2 revision, apply some patches and build it using its own CMake script. Il prezzo attualmente più basso per una key Mighty Goose PS5 In Italia è 16.3 Mighty Goose è un videogioco multiplayer sparatutto nel quale è possibile controllare un’oca cacciatrice di taglie.Just to elaborate on our usecase, for both Linux/Mac we: Ultimately, we ended up using another toolchain for Windows -> Mac, but we will definitely check back on Zig + Mac in the future. Thanks for looking into this! I think this means we will ship Baba Is You on Linux using zig cc :) This has worked perfectly so far for Linux, except for this particular issue :) It seems like #10050 is a different issue related to -lgcc_s/ -lunwind, so creating a new issue here.Īs a sidenote, we are currently evaluating using zig cc as a cross compiler from Windows -> Linux/Mac for our games (Baba Is You, Mighty Goose, etc). Otherwise, the executable will depend on dynamic libraries which might not exist on the host system. Use epic weapons and devastating war machines to battle against screen filling bosses and hordes of enemies. This is especially problematic when compiling libraries like SDL2 which rely on the -as-needed behavior to remove such DT_NEEDED entries. Key Version: GLOBAL Check system requirements Mighty Goose is a fast paced run & gun shooter starring a bounty hunter Goose. Zig cc gave a message warning: unsupported linker arg: -as-needed. as-needed is supported by both lld and GNU ld, but zig cc needs to be changed to allow for this particular flag. Zig cc should accept -as-needed as a linker flag such that unnecessary DT_NEEDED entries are removed. If you use objdump -p on the resulting executable, you will also see DT_NEEDED entries for e.g. Warning: unsupported linker arg: -as-needed
0 Comments
Leave a Reply. |