最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - Can I customize compile options in Nuitka? - Stack Overflow

programmeradmin1浏览0评论

Can I customize the compile options for GCC in Nuitka (e.g. -O2, -static)?

Update: I read the user manual but found nothing. I also checked the command line options of nuitka and found --generate-c-only and --show-scons. Maybe these can help me build the executables, but I don't know how to complete the rest of the process.

Can I customize the compile options for GCC in Nuitka (e.g. -O2, -static)?

Update: I read the user manual but found nothing. I also checked the command line options of nuitka and found --generate-c-only and --show-scons. Maybe these can help me build the executables, but I don't know how to complete the rest of the process.

Share Improve this question edited Mar 15 at 12:29 Zxd2025 asked Mar 15 at 6:48 Zxd2025Zxd2025 1717 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

From the user manual:

Providing extra Options to Nuitka C compilation

Nuitka will apply values from the environment variables CCFLAGS, LDFLAGS during the compilation on top of what it determines to be necessary. Beware, of course, that this is only useful if you know what you are doing, so should this pose issues, raise them only with perfect information.

Maybe this could be helpful!

发布评论

评论列表(0)

  1. 暂无评论