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

Conversation

mikdusan
Copy link
Member

@mikdusan mikdusan commented Feb 17, 2024

Previously, zig build-exe foo.zig -ofmt=c emits foo.c with 755 mode. This PR lets createFile() use default .mode and foo.c is emitted with 644 mode (assuming typical umask of 022).

Closes #13407

@jacobly0 jacobly0 merged commit 50330ec into ziglang:master Feb 17, 2024
@mikdusan mikdusan deleted the cbe-noexecute branch February 17, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

zig build: FileNotFound when lib.ofmt = .c
2 participants