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

Cleanup macOS debugging files #1779

Merged
merged 11 commits into from
Nov 29, 2024
Merged

Cleanup macOS debugging files #1779

merged 11 commits into from
Nov 29, 2024

Conversation

VeckoTheGecko
Copy link
Contributor

@VeckoTheGecko VeckoTheGecko commented Nov 29, 2024

Files of .so.dSYM extension are debugging files creating during C compilation on MacOS systems. This PR checks for them and cleans them up if they exist. This PR also does some refactoring of dead code related to Kernel.dyn_srcs.

During my debugging in a Jupyter notebook, I did realise some erroneous .so files were left behind sometimes. A bit inconsistent, as these should have been garbage collected. Couldn't recreate in the tests though. Perhaps something to do with the Jupyter notebook environment and how items are garbage collected? Thoughts @erikvansebille ?

Fixes #1637

`basename` is never a collection. It is always a string
dyn_srcs is not used in the codebase as its never defined (also backed up by having no test coverage), leading to several cleanups.
Still need to add tests, and make sure that no other places are saving these debugging files.
xref #1637
@VeckoTheGecko VeckoTheGecko merged commit f7648f0 into master Nov 29, 2024
15 checks passed
@VeckoTheGecko VeckoTheGecko deleted the v/1637 branch November 29, 2024 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Files with .so.dSYM extension aren't cleaned up after C compilation
2 participants