aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/WriteFile.zig
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2023-06-24 15:22:56 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-06-25 01:42:12 -0700
commitb11170294052585ae81b9946d770f860d163da8f (patch)
treeeb4b73867e878ca8706b73f27eafa21ea6ccaa98 /lib/std/Build/Step/WriteFile.zig
parent9684947faae674e093dda4c81d94f51b9568369e (diff)
downloadzig-b11170294052585ae81b9946d770f860d163da8f.tar.gz
zig-b11170294052585ae81b9946d770f860d163da8f.zip
Recognize the .res extension and link it as if it were an object file
.res files are compiled Windows resource files that get linked into executables/libraries. The linker knows what to do with them, but previously you had to trick Zig into thinking it was an object file (by renaming it to have the .obj extension, for example). After this commit, the following works: zig build-exe main.zig resource.res or, in build.zig: exe.addObjectFile("resource.res"); Closes #6488
Diffstat (limited to 'lib/std/Build/Step/WriteFile.zig')
0 files changed, 0 insertions, 0 deletions