Skip to content

cbe: do not set execute bits on emitted file #18965

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/link/C.zig
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ pub fn createEmpty(
const use_lld = build_options.have_llvm and comp.config.use_lld;
const use_llvm = comp.config.use_llvm;
const output_mode = comp.config.output_mode;
const link_mode = comp.config.link_mode;

// These are caught by `Compilation.Config.resolve`.
assert(!use_lld);
Expand All @@ -123,7 +122,6 @@ pub fn createEmpty(
const file = try emit.directory.handle.createFile(emit.sub_path, .{
// Truncation is done on `flush`.
.truncate = false,
.mode = link.File.determineMode(use_lld, output_mode, link_mode),
});
errdefer file.close();

Expand Down