gpt4 book ai didi

c - makefile 在 Scons 中定义等效项

转载 作者:太空宇宙 更新时间:2023-11-04 07:26:30 24 4
gpt4 key购买 nike

在 gcc makefile 中,您可以使用 -D 标志来指定编译程序中的定义。例如,您可以在 makefile 中指定 -DSOMETHING,而不是放置#define SOMETHING。这在 SCons 中相当于什么?

最佳答案

我相信您需要 CPPDEFINES 构造变量。参见 the SCons documentation page有关更多详细信息,请参阅 CPPDEFINES

关于c - makefile 在 Scons 中定义等效项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17907398/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com