aboutsummaryrefslogtreecommitdiffhomepage
path: root/transform
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2023-10-13 16:12:34 +0200
committerRon Evans <[email protected]>2023-10-14 11:35:26 +0200
commitd801d0cd539447322228e9f1daa860774584b4d3 (patch)
treea1a608bd558051b19f05cb2114585489f4cefae9 /transform
parentc2f1965e0358d3f044bd8f8282ce3942d669ff89 (diff)
downloadtinygo-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 'transform')
-rw-r--r--transform/transform_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/transform/transform_test.go b/transform/transform_test.go
index 4cab255e6..f23a480a9 100644
--- a/transform/transform_test.go
+++ b/transform/transform_test.go
@@ -145,7 +145,7 @@ func compileGoFileForTesting(t *testing.T, filename string) llvm.Module {
defer machine.Dispose()
// Load entire program AST into memory.
- lprogram, err := loader.Load(config, filename, config.ClangHeaders, types.Config{
+ lprogram, err := loader.Load(config, filename, types.Config{
Sizes: compiler.Sizes(machine),
})
if err != nil {