-
Notifications
You must be signed in to change notification settings - Fork 26
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 logic for resource dir flag #168
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #168 +/- ##
==========================================
+ Coverage 80.14% 80.76% +0.61%
==========================================
Files 19 19
Lines 972 972
Branches 93 93
==========================================
+ Hits 779 785 +6
+ Misses 193 187 -6
|
clang-tidy review says "All clean, LGTM! 👍" |
std::cerr << "Failed to detect the resource-dir\n"; | ||
} | ||
ClangArgs.push_back("-resource-dir"); | ||
ClangArgs.push_back(resource_dir.c_str()); |
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.
Please make this patch one line as it should be.
clang-tidy review says "All clean, LGTM! 👍" |
Closing as completed in #169 |
The logic for the resource dir flag looks corrupt.
I am guessing we need to check if the flag is available, if not we need CppInterOp to fetch it for us. If flag is found add the arguments else return error.