Skip to content

Commit 320f215

Browse files
aykevldeadprogram
authored andcommitted
cgo: slightly improve error messages
Updating them to libclang-13-dev was a good change, but we can go even further: * The suggestion didn't apply to MacOS. * The suggestion would need to be updated with every LLVM release, which is a maintenance burden. * The suggestion is wrong when compiling with `-tags=llvm12` for example to choose a different LLVM version. Therefore, link to the build documentation instead.
1 parent 4117055 commit 320f215

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cgo/libclang.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
)
1717

1818
/*
19-
#include <clang-c/Index.h> // if this fails, install libclang-13-dev
19+
#include <clang-c/Index.h> // If this fails, libclang headers aren't available. Please take a look here: https://tinygo.org/docs/guides/build/
2020
#include <stdlib.h>
2121
#include <stdint.h>
2222

cgo/libclang_stubs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// are slightly different from the ones defined in libclang.go, but they
44
// should be ABI compatible.
55

6-
#include <clang-c/Index.h> // if this fails, install libclang-13-dev
6+
#include <clang-c/Index.h> // If this fails, libclang headers aren't available. Please take a look here: https://tinygo.org/docs/guides/build/
77

88
CXCursor tinygo_clang_getTranslationUnitCursor(CXTranslationUnit tu) {
99
return clang_getTranslationUnitCursor(tu);

0 commit comments

Comments
 (0)