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

Compiler path in compile_commands.json must be absolute #824

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

alicetrifu
Copy link
Contributor

Added code to create the absolute path of the compiler on compile_commands.json file
#822

Copy link
Member

@jonahgraham jonahgraham left a comment

Choose a reason for hiding this comment

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

This looks good. Please add some tests, can you cover cases when compiler is on the system PATH, but the project PATH points to a different one? I think that case is the most likely to regress as it is non-obvious to most developers.

Copy link
Member

@jonahgraham jonahgraham left a comment

Choose a reason for hiding this comment

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

Thanks @alicetrifu for the updates - the code all looks ok now. Just the tests as we discussed from the last review.

Copy link
Member

@jonahgraham jonahgraham left a comment

Choose a reason for hiding this comment

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

This is ready to go, just noticed a minor nit about usage of JUnit. The test failure seems unrelated and I retriggered the build to verify that.

Copy link
Member

@jonahgraham jonahgraham left a comment

Choose a reason for hiding this comment

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

Once build reports a clean run this is good to go.

@jonahgraham jonahgraham linked an issue Jul 31, 2024 that may be closed by this pull request
@jonahgraham jonahgraham merged commit 7420b12 into eclipse-cdt:main Jul 31, 2024
5 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.

Compiler path in compile_commands.json must be absolute
2 participants