Files
cmake/Tests/RunCMake/Swift/SwiftLibraryModuleCommand-check-stdout-darwin.txt
Roman Lavrov 0f20ba5b68 Ninja: Swift: Extract helpers and reorder module flags
Extract SetupResponseFile and ExpandRuleCommands helpers from
WriteCompileRule to allow reuse by new rule types.

Reorder flag appending in WriteSwiftObjectBuildStatement so that
-module-name and -module-link-name precede -emit-module, preparing
for a separate emit-module edge that shares common flags.  Update
test regexes accordingly.

Issue: #27748
2026-04-24 10:17:11 -04:00

21 lines
750 B
Plaintext

.*swiftc(\.exe)?"? [^
]* -parse-as-library -static[^
]* -module-name StaticLibrary [^
]* -emit-module -emit-module-path (Debug/|Release/)?StaticLibrary\.swiftmodule [^
]*
.*swiftc(\.exe)?"? [^
]* -parse-as-library[^
]* -module-name DynamicLibrary [^
]* -emit-module -emit-module-path (debug|release)/modules/DynamicLibrary\.swiftmodule [^
]*
.*swiftc(\.exe)?"? [^
]* -emit-library [^
]* -Xlinker -install_name -Xlinker @rpath/libDynamicLibrary\.dylib -o ([A-Za-z]+/)?libDynamicLibrary\.dylib [^
]*
.*swiftc(\.exe)?"? [^
]* -parse-as-library[^
]* -module-name DynamicLibrary2 [^
]* -emit-module -emit-module-path Modules/(Debug/|Release/)?DynamicLibrary2\.swiftmodule [^
]*
.*swiftc(\.exe)?"? -j [0-9]+ -num-threads [0-9]+ -c -module-name Executable