Skip to content

Commit 622a351

Browse files
authored
Merge pull request #1546 from apple/mracek/propagate-no-alloc-flag
Propagate the -no-allocations frontend flag to the frontend
2 parents e047316 + cc74efe commit 622a351

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/SwiftDriver/Jobs/FrontendJobHelpers.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ extension Driver {
254254
try commandLine.appendAll(.debugPrefixMap, .coveragePrefixMap, .filePrefixMap, from: &parsedOptions)
255255
try commandLine.appendAllArguments(.Xfrontend, from: &parsedOptions)
256256
try commandLine.appendLast(.warnConcurrency, from: &parsedOptions)
257+
if isFrontendArgSupported(.noAllocations) {
258+
try commandLine.appendLast(.noAllocations, from: &parsedOptions)
259+
}
257260
if isFrontendArgSupported(.enableExperimentalFeature) {
258261
try commandLine.appendAll(
259262
.enableExperimentalFeature, from: &parsedOptions)

0 commit comments

Comments
 (0)