WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit ce5621b

Browse files
committed
no_link_obj fix
1 parent 1b05d8b commit ce5621b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compilation.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3357,7 +3357,7 @@ fn flush(
33573357
const lf = comp.bin_file orelse break :p null;
33583358
// With --no-link, write LLVM output directly to final location
33593359
const basename = if (comp.no_link_obj)
3360-
lf.emit.sub_path // Direct to final output (skip flushObject)
3360+
std.fs.path.basename(lf.emit.sub_path) // Direct to final output (skip flushObject)
33613361
else
33623362
lf.zcu_object_basename.?; // To intermediate (flushObject will copy)
33633363
const p = try comp.resolveEmitPathFlush(arena, if (comp.no_link_obj) .artifact else .temp, basename);

0 commit comments

Comments
 (0)