File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -334,13 +334,7 @@ func evaluateIfConfig(
334
334
let segment = stringLiteral. segments. first,
335
335
case . stringSegment( let stringSegment) = segment
336
336
else {
337
- return recordError (
338
- . requiresUnlabeledArgument(
339
- name: " _compiler_version " ,
340
- role: " version " ,
341
- syntax: ExprSyntax ( call)
342
- )
343
- )
337
+ return doVersionComparisonCheck ( configuration. compilerVersion)
344
338
}
345
339
346
340
let versionString = stringSegment. content. text
Original file line number Diff line number Diff line change @@ -193,6 +193,8 @@ public class EvaluateTests: XCTestCase {
193
193
assertIfConfig ( #"_compiler_version("5009.*.1")"# , . active)
194
194
assertIfConfig ( #"_compiler_version("5009.*.3.2.3")"# , . unparsed)
195
195
assertIfConfig ( #"_compiler_version("5010.*.0")"# , . unparsed)
196
+ assertIfConfig ( " _compiler_version(>=5.8) " , . active)
197
+ assertIfConfig ( " _compiler_version(>=12.0) " , . unparsed)
196
198
assertIfConfig ( " compiler(>=5.10) && 3.14159 " , . unparsed)
197
199
assertIfConfig (
198
200
" compiler(>=5.10) || 3.14159 " ,
You can’t perform that action at this time.
0 commit comments