authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2024-02-16 19:12:11-05:00
committergravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2024-02-17 10:50:46+01:00
log50330ec22a79646d65ad0562ae0e580669a8c9cc
tree0e34478ba9f49be9a67d5c64480027239edb4c8b
parentfc7dd3e285889cd0f75e7270bb0021ad32f73ca3

cbe: do not set execute bits on emitted file


1 files changed, 0 insertions(+), 2 deletions(-)

src/link/C.zig-2
......@@ -114,7 +114,6 @@ pub fn createEmpty(
114114 const use_lld = build_options.have_llvm and comp.config.use_lld;
115115 const use_llvm = comp.config.use_llvm;
116116 const output_mode = comp.config.output_mode;
117 const link_mode = comp.config.link_mode;
118117
119118 // These are caught by `Compilation.Config.resolve`.
120119 assert(!use_lld);
......@@ -123,7 +122,6 @@ pub fn createEmpty(
123122 const file = try emit.directory.handle.createFile(emit.sub_path, .{
124123 // Truncation is done on `flush`.
125124 .truncate = false,
126 .mode = link.File.determineMode(use_lld, output_mode, link_mode),
127125 });
128126 errdefer file.close();
129127