-
Notifications
You must be signed in to change notification settings - Fork 201
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
Conversation
f1253df
to
d4bace4
Compare
...eclipse/cdt/managedbuilder/internal/core/jsoncdb/generator/CompilationDatabaseGenerator.java
Outdated
Show resolved
Hide resolved
...eclipse/cdt/managedbuilder/internal/core/jsoncdb/generator/CompilationDatabaseGenerator.java
Outdated
Show resolved
Hide resolved
...eclipse/cdt/managedbuilder/internal/core/jsoncdb/generator/CompilationDatabaseGenerator.java
Outdated
Show resolved
Hide resolved
...eclipse/cdt/managedbuilder/internal/core/jsoncdb/generator/CompilationDatabaseGenerator.java
Show resolved
Hide resolved
...eclipse/cdt/managedbuilder/internal/core/jsoncdb/generator/CompilationDatabaseGenerator.java
Outdated
Show resolved
Hide resolved
...eclipse/cdt/managedbuilder/internal/core/jsoncdb/generator/CompilationDatabaseGenerator.java
Outdated
Show resolved
Hide resolved
...eclipse/cdt/managedbuilder/internal/core/jsoncdb/generator/CompilationDatabaseGenerator.java
Show resolved
Hide resolved
d4bace4
to
6ce8ffb
Compare
There was a problem hiding this 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.
...eclipse/cdt/managedbuilder/internal/core/jsoncdb/generator/CompilationDatabaseGenerator.java
Outdated
Show resolved
Hide resolved
...eclipse/cdt/managedbuilder/internal/core/jsoncdb/generator/CompilationDatabaseGenerator.java
Outdated
Show resolved
Hide resolved
...eclipse/cdt/managedbuilder/internal/core/jsoncdb/generator/CompilationDatabaseGenerator.java
Outdated
Show resolved
Hide resolved
...eclipse/cdt/managedbuilder/internal/core/jsoncdb/generator/CompilationDatabaseGenerator.java
Outdated
Show resolved
Hide resolved
6ce8ffb
to
50f908f
Compare
There was a problem hiding this 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.
50f908f
to
8910e03
Compare
...tests/tests/org/eclipse/cdt/managedbuilder/core/tests/CompilationDatabaseGenerationTest.java
Outdated
Show resolved
Hide resolved
8910e03
to
75fe7d7
Compare
...tests/tests/org/eclipse/cdt/managedbuilder/core/tests/CompilationDatabaseGenerationTest.java
Outdated
Show resolved
Hide resolved
75fe7d7
to
f021eeb
Compare
...tests/tests/org/eclipse/cdt/managedbuilder/core/tests/CompilationDatabaseGenerationTest.java
Outdated
Show resolved
Hide resolved
f021eeb
to
6b57b89
Compare
...tests/tests/org/eclipse/cdt/managedbuilder/core/tests/CompilationDatabaseGenerationTest.java
Outdated
Show resolved
Hide resolved
6b57b89
to
1ec8909
Compare
There was a problem hiding this 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.
...tests/tests/org/eclipse/cdt/managedbuilder/core/tests/CompilationDatabaseGenerationTest.java
Outdated
Show resolved
Hide resolved
Added Junit test update
1ec8909
to
7f97fab
Compare
There was a problem hiding this 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.
Added code to create the absolute path of the compiler on compile_commands.json file
#822