Skip to content

Commit cc74efe

Browse files
committed
Use isFrontendArgSupported() to guard the -no-allocations flag
1 parent 74ff92d commit cc74efe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/SwiftDriver/Jobs/FrontendJobHelpers.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +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-
try commandLine.appendLast(.noAllocations, from: &parsedOptions)
257+
if isFrontendArgSupported(.noAllocations) {
258+
try commandLine.appendLast(.noAllocations, from: &parsedOptions)
259+
}
258260
if isFrontendArgSupported(.enableExperimentalFeature) {
259261
try commandLine.appendAll(
260262
.enableExperimentalFeature, from: &parsedOptions)

0 commit comments

Comments
 (0)