-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
can't getEmittedAsm() on a C/C++ program #22612
Copy link
Copy link
Open
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorzig build systemstd.Build, the build runner, `zig build` subcommand, package managementstd.Build, the build runner, `zig build` subcommand, package management
Milestone
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorzig build systemstd.Build, the build runner, `zig build` subcommand, package managementstd.Build, the build runner, `zig build` subcommand, package management
Zig Version
0.14.0-dev.2851+b074fb7dd
Steps to Reproduce and Observed Behavior
Using this project as a minimal reproduction:
build.zigconst test_step = b.step("test", "Run the tests"); test_step.dependOn(&run_tests.step); + const emit_asm = b.addInstallFile(test_bin.getEmittedAsm(), "picohttpparser.s"); + const asm_step = b.step("asm", "Emit assembly"); + asm_step.dependOn(&emit_asm.step); }Produces this error mesasge:
Expected Behavior
An assembly file must be generated, as in any Zig program. I'm not sure if this occurred in an older version or there's something I'm missing.