diff options
author | Ayke van Laethem <[email protected]> | 2023-10-13 16:12:34 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2023-10-14 11:35:26 +0200 |
commit | d801d0cd539447322228e9f1daa860774584b4d3 (patch) | |
tree | a1a608bd558051b19f05cb2114585489f4cefae9 /cgo/cgo_test.go | |
parent | c2f1965e0358d3f044bd8f8282ce3942d669ff89 (diff) | |
download | tinygo-d801d0cd539447322228e9f1daa860774584b4d3.tar.gz tinygo-d801d0cd539447322228e9f1daa860774584b4d3.zip |
builder: refactor clang include headers
Set -resource-dir in a central place instead of passing the header path
around everywhere and adding it using the `-I` flag. I believe this is
closer to how Clang is intended to be used.
This change was inspired by my attempt to add a Nix flake file to
TinyGo.
Diffstat (limited to 'cgo/cgo_test.go')
-rw-r--r-- | cgo/cgo_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cgo/cgo_test.go b/cgo/cgo_test.go index a44dd8e18..24a1289d7 100644 --- a/cgo/cgo_test.go +++ b/cgo/cgo_test.go @@ -55,7 +55,7 @@ func TestCGo(t *testing.T) { } // Process the AST with CGo. - cgoAST, _, _, _, _, cgoErrors := Process([]*ast.File{f}, "testdata", "main", fset, cflags, "") + cgoAST, _, _, _, _, cgoErrors := Process([]*ast.File{f}, "testdata", "main", fset, cflags) // Check the AST for type errors. var typecheckErrors []error |