cgo: add dummy implementation of __builtin_va_list

Every ABI has a slightly different implementation. Ideally, we would use
something like Clang TargetInfo or extract it by compiling some C code
and checking the IR, but this is a useful workaround for now.
Этот коммит содержится в:
Ayke van Laethem 2019-04-24 20:30:12 +02:00 коммит произвёл Ron Evans
родитель b815d3f760
коммит d396abb690

Просмотреть файл

@ -60,6 +60,7 @@ var cgoAliases = map[string]string{
"C.uint32_t": "uint32", "C.uint32_t": "uint32",
"C.uint64_t": "uint64", "C.uint64_t": "uint64",
"C.uintptr_t": "uintptr", "C.uintptr_t": "uintptr",
"C.__builtin_va_list": "uintptr", // dummy value until fully implemented
} }
// cgoTypes lists some C types with ambiguous sizes that must be retrieved // cgoTypes lists some C types with ambiguous sizes that must be retrieved