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

Fix for handling absolute include paths #1404

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

pawosm-arm
Copy link
Collaborator

A silly bug that prevented building OpenMPI OOT.

if (tmpfp) {
snprintf(fullname, MAX_PATHNAME_LEN, "%s", name);
idir.last = 0;
if (fclose(tmpfp) == 0)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Using fopen and fclose here makes the preprocessor behave different for this specific case. In the other cases, fndpath calls access to determine if an included file exists. Shall we do the same here?

@pawosm-arm pawosm-arm merged commit 44ea0d5 into flang-compiler:master Jul 19, 2023
6 checks passed
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.

3 participants