1. added double dash option to test to avoid warning message about compilation database

2. fixed cmake resource folder discovery for standalone build case
This commit is contained in:
dfukalov
2016-03-05 13:59:38 +03:00
parent 236c38719c
commit d60aa72f6c
3 changed files with 14 additions and 13 deletions
+3
View File
@@ -685,6 +685,9 @@ int main(int argc, const char **argv) {
{
Tool.appendArgumentsAdjuster(getInsertArgumentAdjuster(Stage, ArgumentInsertPosition::BEGIN));
Tool.appendArgumentsAdjuster(getInsertArgumentAdjuster("-std=c++11"));
#if defined(HIPIFY_CLANG_RES)
Tool.appendArgumentsAdjuster(getInsertArgumentAdjuster("-resource-dir=" HIPIFY_CLANG_RES));
#endif // defined(HIPIFY_CLANG_HEADERS)
Tool.appendArgumentsAdjuster(getClangSyntaxOnlyAdjuster());
Result = Tool.run(action.get());