加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – GCC是否支持命令文件

发布时间:2020-12-13 19:50:22 所属栏目:Linux 来源:网络整理
导读:MSVC编译器支持 command files,用于传递命令行选项.这主要是由于可以传递给 CreateProcess调用的命令行参数的大小限制. 这在Linux系统上不是一个问题,但是当执行Unix应用程序的cygwin端口(例如gcc)时,同样的限制也适用. 因此,有谁知道gcc / g是否也支持某种
MSVC编译器支持 command files,用于传递命令行选项.这主要是由于可以传递给 CreateProcess调用的命令行参数的大小限制.

这在Linux系统上不是一个问题,但是当执行Unix应用程序的cygwin端口(例如gcc)时,同样的限制也适用.

因此,有谁知道gcc / g是否也支持某种类型的命令文件?

谢谢.

解决方法

当然!
@file
           Read command-line options from file.  The options read are inserted
           in place of the original @file option.  If file does not exist,or
           cannot be read,then the option will be treated literally,and not
           removed.

           Options in file are separated by whitespace.  A whitespace
           character may be included in an option by surrounding the entire
           option in either single or double quotes.  Any character (including
           a backslash) may be included by prefixing the character to be
           included with a backslash.  The file may itself contain additional
           @file options; any such options will be processed recursively.

如果您的平台拥有它,您还可以使用xargs对此类事物进行评审.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读