gpt4 book ai didi

ada - 在 gprbuild 文件中设置 --create-missing-dirs 选项

转载 作者:行者123 更新时间:2023-12-03 05:56:08 24 4
gpt4 key购买 nike

有一个单独的目录来存储目标文件很有用。但是,如果该目录尚不存在,gprbuild 会提示。我使用 hg 进行版本控制,它不允许您跟踪空目录(据我所知,git 也是如此),但即使可以,这也是不幸的必须用空目录弄乱存储库。 gprbuild 有一个选项,--create-missing-dirs(缩写形式-p),它的作用与它在 jar 上所说的完全一样。这非常有用。然而,我想知道的是是否有某种方法可以在 .gpr 文件中设置它。必须提醒我的用户使用 -p 选项进行编译,而不是仅仅运行 gprbuild 项目,这是令人讨厌的。不幸的是,gprguild 的文档是这样说的:

By default, GPRbuild checks that the object, library and exec directories specified in project files exist. Switch -p instructs GPRbuild to attempt to create missing directories. Note that these switches may be specified in package Builder of the main project, but they are useless there as either the directories already exist or the processing of the project files has failed before the evaluation of the Builder switches, because there is at least one missing directory.

肯定有一种方法可以实现我所描述的目的吗?

最佳答案

最新版本的gprbuild(自 2016 年 8 月 19 日起,请参阅 Git)支持 Create_Missing_Dirs 属性。

project Foo is
for Create_Missing_Dirs use "True";
...

GNAT GPL 2017 有这个。

关于ada - 在 gprbuild 文件中设置 --create-missing-dirs 选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46520424/

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