You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/zig_test$ zig build
zig: warning: argument unused during compilation: '-MD' [-Wunused-command-line-argument]
zig: warning: argument unused during compilation: '-MV' [-Wunused-command-line-argument]
zig: warning: argument unused during compilation: '-MF /home/jack/zig_test/zig-cache/tmp/6EiTG286E8Bm-test.o.d' [-Wunused-command-line-argument]
zig: warning: argument unused during compilation: '-nostdinc' [-Wunused-command-line-argument]
zig: warning: argument unused during compilation: '-fno-spell-checking' [-Wunused-command-line-argument]
zig: warning: argument unused during compilation: '-isystem /snap/zig/640/lib/zig/include' [-Wunused-command-line-argument]
zig: warning: argument unused during compilation: '-D _DEBUG' [-Wunused-command-line-argument]
zig: warning: argument unused during compilation: '-fno-stack-protector' [-Wunused-command-line-argument]
zig: warning: argument unused during compilation: '-fno-omit-frame-pointer' [-Wunused-command-line-argument]
These are just warnings, but I'm suspecting it's causing some of the bugs I'm experiencing. I'll look into how zig handles assembly if I have the time.
PS: is there a roadmap concerning assembly in zig for the future somewhere? I'm interested to see what the plan is
The text was updated successfully, but these errors were encountered:
Those unused warnings are the result of zig not distinguishing between using zig cc to compile C code or assembly code. They're harmless (although I'll leave this issue open to fix them). I think your issue is something else.
PS: is there a roadmap concerning assembly in zig for the future somewhere? I'm interested to see what the plan is
There are a few open issues, such as #2081 and #215. Compiling assembly files is equivalent to compiling them with clang. Inline assembly is not much more than a bare bones implementation currently, and definitely could use some improvement to make it less error prone.
andrewrk
added
bug
Observed behavior contradicts documented or intended behavior
stage1
The process of building from source via WebAssembly and the C backend.
labels
Jan 8, 2020
Hello, as of recently assembly files seems to be misbehaving, I've reproduced a minimal viable example:
which gives me the output
These are just warnings, but I'm suspecting it's causing some of the bugs I'm experiencing. I'll look into how zig handles assembly if I have the time.
PS: is there a roadmap concerning assembly in zig for the future somewhere? I'm interested to see what the plan is
The text was updated successfully, but these errors were encountered: