Bug during haxe --macro Field index for SSL_IS_SERVER not found
yuxiaomao opened this issue · comments
Yuxiao Mao commented
Run the following code with haxe --macro Config.main()
result in error Field index for SSL_IS_SERVER not found on prototype mbedtls._SslEndpoint.SslEndpoint_Impl_
Since 944d4fd ( #11481 )
It works fine with haxe --run Config
.
class Config {
public static function main() {
Sys.println("Config...");
}
public static function updateHaxeLinux() {
new haxe.Http("https://build.haxe.org/builds/haxe/linux64/");
}
}
Rudy Ges commented
Note that it's because of
haxe/std/eval/_std/mbedtls/SslEndpoint.hx
Lines 3 to 7 in 76b3635
Which seems to indicate we do need some "@:native" behavior for macro (but probably only for std things)