Skip to content
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

add '*.os' to .gitignore to exclude object files from builds #486

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MaxKablaam
Copy link

I'm building the Chodot plugin for the Godot game engine, and when I build on my mac with SCons, all the .os source files still show up in my changelists. This line fixed it right up.

@gewang
Copy link
Member

gewang commented Jan 9, 2025

what are the .os files and where are they produced? (typically .cpp and .c files builds into .o or .obj files)

@MaxKablaam
Copy link
Author

Here are the files that I see when I build using SCons with macOS:
Screenshot 2025-01-09 at 1 42 57 PM

I checked and the compiler is using clang and clang++, so I'm actually not sure why the object files are .os.
According to CoPilot:

.os files are typically associated with object files generated by the OpenStep development environment, which was used for NeXTSTEP and macOS development. These files contain compiled code that is not yet linked into a final executable or library.

@MaxKablaam
Copy link
Author

Maybe it has something to do with the godot-cpp module, which has it's own complex SCons environment. They have *.os in their git ignore:

    #.gitignore

# Godot auto generated files
*.gen.*
.import/
.godot/
/gen/

# Godot 3.x ignores
include/gen
src/gen

...

# Binaries
*.o
*.os
*.so
*.obj
*.bc
*.pyc
...

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.

2 participants