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

Issue #1058: Moved generation of the compile_commands.json #1075

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

alicetrifu
Copy link
Contributor

Moved compile_commands.json file to performPrebuildGeneration, so the file to be generated only when Makefiles generation is set to be on.

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 change LGTM - needs to pass the build, but then it is ready to go.

CompilationDatabaseGenerator generator = new CompilationDatabaseGenerator(getProject(), activeCfg);
generator.generate();
}
for (int i = 0; i < num; i++) {
Copy link
Member

Choose a reason for hiding this comment

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

The code cleanliness checks are going to fail because of trailing whitespace here

Suggested change
for (int i = 0; i < num; i++) {
for (int i = 0; i < num; i++) {

Moved compile_commands.json file to performPrebuildGeneration, so the
file to be generated only when Makefiles generation is set to be on.
@alicetrifu alicetrifu force-pushed the MBSProjectsCondition branch from fcfdaef to 839f30a Compare February 3, 2025 15:03
@eclipse-cdt eclipse-cdt deleted a comment from github-actions bot Feb 3, 2025
Copy link

github-actions bot commented Feb 3, 2025

Test Results

   600 files  ±0     600 suites  ±0   13m 31s ⏱️ +10s
10 207 tests +1  10 184 ✅ +1  23 💤 ±0  0 ❌ ±0 
10 245 runs  +1  10 222 ✅ +1  23 💤 ±0  0 ❌ ±0 

Results for commit 839f30a. ± Comparison against base commit c8e47b3.

@jonahgraham jonahgraham added this to the 12.0.0 M3 milestone Feb 3, 2025
@jonahgraham jonahgraham merged commit b6d64ed into eclipse-cdt:main Feb 3, 2025
5 checks passed
@jonahgraham
Copy link
Member

Thanks @alicetrifu for the fix.

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.

Build Error from compile commands generator on MBS projects with build location outside workspace
2 participants