gpt4 book ai didi

swift - "-c"选项对 Swift 编译器 (swiftc) 有什么作用?

转载 作者:搜寻专家 更新时间:2023-11-01 06:53:26 26 4
gpt4 key购买 nike

我注意到 swiftc 中有“-c”选项,这个选项有什么作用?

swiftc ... -c ....

有官方文档吗?我无法从 man--help 或在线找到它:(

最佳答案

-c-emit-object:

$ swiftc --helpOVERVIEW: Swift compilerUSAGE: swiftc [options] MODES:  -dump-ast              Parse and type-check input file(s) and dump AST(s)  -dump-parse            Parse input file(s) and dump AST(s)  -dump-scope-maps                          Parse and type-check input file(s) and dump the scope map(s)  -dump-type-info        Output YAML dump of fixed-size types from all imported modules  -dump-type-refinement-contexts                         Type-check input file(s) and dump type refinement contexts(s)  -emit-assembly         Emit assembly file(s) (-S)  -emit-bc               Emit LLVM BC file(s)  -emit-executable       Emit a linked executable  -emit-imported-modules Emit a list of the imported modules  -emit-ir               Emit LLVM IR file(s)  -emit-library          Emit a linked library  -emit-object           Emit object file(s) (-c)  -emit-sibgen           Emit serialized AST + raw SIL file(s)  -emit-sib              Emit serialized AST + canonical SIL file(s)  -emit-silgen           Emit raw SIL file(s)  -emit-sil              Emit canonical SIL file(s)  -index-file            Produce index data for a source file  -parse                 Parse input file(s)  -print-ast             Parse and type-check input file(s) and pretty print AST(s)  -resolve-imports       Parse and resolve imports in input file(s)  -typecheck             Parse and type-check input file(s)

关于swift - "-c"选项对 Swift 编译器 (swiftc) 有什么作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55525698/

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