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
This seems like an issue with error reporting, not so much that the assembly file is being completely ignored. For example, the following executable works fine with Zig 0.13.0-dev.69+a96b78c17, printing 4 as expected:
can confirm this is more about error reporting and propogation - errors in included assembly files are not reported and if the assembly could not be compiled then linking still proceeds as normal despite the failed compilation unit. a workaround is to @embedFile the asm into a global asm block, though that can cause issues when the included asm has .org or .section directives so its more useful to check for asm errors than anything
Zig Version
0.12.0
Steps to Reproduce and Observed Behavior
Compile a program with an assembly source file. The assembly file is ignored. The easiest way to see this is:
No matter what the assembly file contains, it is ignored
Expected Behavior
The assembly file should be compiled (or, in the above example, an error should be thrown). Here is what version 0.11.0 did:
The text was updated successfully, but these errors were encountered: