CppSharp
CppSharp copied to clipboard
request a tiny tweak to improve debugging clang include dir locating
Brief Description
Can we print the full path for the clang header, instead of relative. which is not so helpful.
the throw line, SetupIncludes() in src/Parser/ParserOptions.cs
private void SetupIncludes()
{
// Check that the builtin includes folder exists.
if (!Directory.Exists(BuiltinsDir))
throw new Exception($"Clang resource folder '{BuiltinsDir}' was not found.");
// tested it later on Linux, a property can be put into {}.
OS: Linux (include version and/or distro)
Used headers
Used settings
Target: MSVC/GCC/Clang
Other settings
Stack trace or incompilable generated code
I had problem to run build.sh on windows git-bash.exe.
unix2does build.sh does not help. Later I found, I must delete the old cppsharp repo, and clean git clone, otherwise some old lua downlaod, cause error.
$ ./generate.sh
Error: invalid option 'configuration'
I'm happy you've resolved the problem. Do you have further related trouble or may we close this?
We should change the code to print an absolute path of the dir before closing this, as suggested.
Thank you, please close it after add more print.