Browse Source

Disable this workaround for now as it's not working as intended.

Will fix this in another way later.
pull/536/merge
João Matos 11 years ago
parent
commit
f23cd53010
  1. 6
      src/Generator.Tests/GeneratorTest.cs

6
src/Generator.Tests/GeneratorTest.cs

@ -45,11 +45,12 @@ namespace CppSharp.Utils
var path = Path.GetFullPath(GetTestsDirectory(name)); var path = Path.GetFullPath(GetTestsDirectory(name));
options.addIncludeDirs(path); options.addIncludeDirs(path);
#if BROKEN
var foundClangResourceDir = false; var foundClangResourceDir = false;
for (uint i = 0; i < options.SystemIncludeDirsCount; ++i) for (uint i = 0; i < options.SystemIncludeDirsCount; ++i)
{ {
var dir = options.getSystemIncludeDirs(i); var dir = options.getSystemIncludeDirs(i);
if (dir.Contains(@"lib/clang/")) if (dir.Contains(Path.Combine("lib", "clang")))
{ {
foundClangResourceDir = true; foundClangResourceDir = true;
break; break;
@ -59,8 +60,9 @@ namespace CppSharp.Utils
if (!foundClangResourceDir) if (!foundClangResourceDir)
{ {
var dir = Path.GetFullPath(Path.Combine(path, "../../deps/llvm/tools/clang/lib/Headers")); var dir = Path.GetFullPath(Path.Combine(path, "../../deps/llvm/tools/clang/lib/Headers"));
options.addSystemIncludeDirs(dir); options.addSystemIncludeDirs(dir);
} }
#endif
driver.Diagnostics.Message("Looking for tests in: {0}", path); driver.Diagnostics.Message("Looking for tests in: {0}", path);
var files = Directory.EnumerateFiles(path, "*.h"); var files = Directory.EnumerateFiles(path, "*.h");

Loading…
Cancel
Save