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

Emit a dSYM archive on MacOS with C backend #27101

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jabraham17
Copy link
Member

@jabraham17 jabraham17 commented Apr 11, 2025

Adjusts the Chapel executable Makefiles to invoke dsymutil on MacOS when debugging information is requested. This is only done when the target compiler is not LLVM, as the Chapel compiler already handles this case for LLVM.

This improves the generated debug symbols on MacOS when using the C backend, without needing to save the generated C files

This PR builds on the work in #24436

[Reviewed by @dlongnecke-cray]

ifeq ($(COMP_GEN_DEBUG),1)
ifeq ($(CHPL_MAKE_TARGET_PLATFORM),darwin)
ifneq ($(CHPL_MAKE_TARGET_COMPILER),llvm)
rm -f $(BINNAME)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we touch these things first to make sure they exist?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think that is needed. This is the same logic that was there before, -f meaning that rm won't fail if the file doesn't exist

Copy link
Contributor

Choose a reason for hiding this comment

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

Ohp my bad I completely glanced over the -f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants