From bbe7c1cb725868d1b1ec640833026b06ce55c1c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joa=CC=83o=20Matos?= Date: Fri, 15 Jan 2016 18:08:28 +0000 Subject: [PATCH] Added an hardcoded path to the GCC builtin headers for Travis Linux build. --- src/Generator.Tests/GeneratorTest.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Generator.Tests/GeneratorTest.cs b/src/Generator.Tests/GeneratorTest.cs index 5f042f2f..62f4e499 100644 --- a/src/Generator.Tests/GeneratorTest.cs +++ b/src/Generator.Tests/GeneratorTest.cs @@ -48,6 +48,11 @@ namespace CppSharp.Utils var path = Path.GetFullPath(GetTestsDirectory(name)); options.addIncludeDirs(path); + // Remove this hardcoded path once we update our LLVM binary packages to bundle + // the built-in Clang includes. + if (Environment.GetEnvironmentVariable("TRAVIS_OS_NAME") == "linux") + options.addSystemIncludeDirs("/usr/lib/gcc/x86_64-linux-gnu/4.8/include"); + #if BROKEN var foundClangResourceDir = false; for (uint i = 0; i < options.SystemIncludeDirsCount; ++i)