loader: only add Clang header path for CGo

It should only be added at the point that it is needed, for example when
using libclang or using the built-in Clang. It isn't needed when running
an external tool.
This commit is contained in:
Ayke van Laethem
2022-02-03 10:55:35 +01:00
committed by Ron Evans
parent 4b2edc9a26
commit 850a5fdbfb
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ func TestCGo(t *testing.T) {
}
// Process the AST with CGo.
cgoAST, _, _, _, _, cgoErrors := Process([]*ast.File{f}, "testdata", fset, cflags)
cgoAST, _, _, _, _, cgoErrors := Process([]*ast.File{f}, "testdata", fset, cflags, "")
// Check the AST for type errors.
var typecheckErrors []error