-
-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
源里面的lua有配置导致stdlib.h编译不过 #3348
Comments
Title: The lua in the source is configured so that stdlib.h cannot be compiled. |
这种包问题,你自己直接提个 pr 过来到 xmake-repo 改进下包就行了。 |
Title: The lua in the source is configured so that stdlib.h cannot be compiled. |
当前这个宏,应该只在 .c 源码里面生效,在 .h 头文件里面不行。因为目前 ndk 里面是有 system 函数的,不清楚能否提 pr 删掉? |
Currently, this macro should only take effect in the .c source code, not the .h header file. Because there is currently a system function in ndk, I don’t know if I can delete it through PR? |
既然 ndk 有 system ,跟它的 system 冲突了,你 patch 下 luaconf.h 把里面的 system 去了不就好了么。。 一行代码的事情,仅对 android 修改,又不影响什么。 #if defined(LUA_LIB)
/* disable system calls as it's not available on this sytem */
#define system(s) ((s)==NULL ? 0 : -1)
#endif |
Xmake Version
xmake v2.8.5+20231107
Operating System Version and Architecture
macOS sonama
Describe Bug
远程仓库里面的 lua,luaconf.h 文件带了一个宏。
如果代码里面引入了 stdlib.h,用 android 和 ios 的工具链编译会失败,macOS 下面正常。
Expected Behavior
正常编译通过。最好是不要修改 lua 的源码。
Project Configuration
跟我的项目配置关系不大。
编译命令:
Additional Information and Error Logs
编译报错的日志。
The text was updated successfully, but these errors were encountered: