Skip to content

Zig.gitignore add *.o #4648

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
May 27, 2025
Merged

Zig.gitignore add *.o #4648

merged 1 commit into from
May 27, 2025

Conversation

oittaa
Copy link
Contributor

@oittaa oittaa commented May 25, 2025

Reasons for making this change

If you run zig build-exe myfile.zig it will generate myfile.o in addition to the executable in the current directory. I think those should be ignored even though they are usually in the zig-out directory if you use the proper build system.

$ zig version
0.14.1

Links to documentation supporting these rule changes

https://ziglang.org/learn/build-system/

Merge and Approval Steps

  • [*] Confirm that you've read the contribution guidelines and ensured your PR aligns
  • Ensure CI is passing
  • Get a review and Approval from one of the maintainers
$ zig version
0.14.1

If you run `zig build-exe myfile.zig` it will generate myfile.o in addition to the executable in the current directory. I think those should be ignored even though they are usually in the zig-out directory if you use the proper build system.
@oittaa oittaa requested a review from a team as a code owner May 25, 2025 19:33
Copy link
Collaborator

@dooleydevin dooleydevin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!!!

@dooleydevin dooleydevin merged commit db90803 into github:main May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants