File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,8 @@ extension BuildParameters {
151
151
args = [ " -alias " , " _ \( target. c99name) _main " , " _main " ]
152
152
case . elf:
153
153
args = [ " --defsym " , " main= \( target. c99name) _main " ]
154
+ case . coff:
155
+ args = [ " /ALTERNATENAME:main= \( target. c99name) _main " , " /SUBSYSTEM:CONSOLE " ]
154
156
default :
155
157
return nil
156
158
}
Original file line number Diff line number Diff line change @@ -3875,7 +3875,7 @@ class BuildPlanTestCase: BuildSystemProviderTestCase {
3875
3875
observabilityScope: observability. topScope
3876
3876
) )
3877
3877
}
3878
- let supportingTriples : [ Basics . Triple ] = [ . x86_64Linux, . x86_64MacOS]
3878
+ let supportingTriples : [ Basics . Triple ] = [ . x86_64Linux, . x86_64MacOS, . x86_64Windows ]
3879
3879
for triple in supportingTriples {
3880
3880
let result = try await createResult ( for: triple)
3881
3881
let exe = try result. moduleBuildDescription ( for: " exe " ) . swift ( ) . compileArguments ( )
@@ -3884,7 +3884,7 @@ class BuildPlanTestCase: BuildSystemProviderTestCase {
3884
3884
XCTAssertMatch ( linkExe, [ . contains( " exe_main " ) ] )
3885
3885
}
3886
3886
3887
- let unsupportingTriples : [ Basics . Triple ] = [ . wasi, . windows ]
3887
+ let unsupportingTriples : [ Basics . Triple ] = [ . wasi]
3888
3888
for triple in unsupportingTriples {
3889
3889
let result = try await createResult ( for: triple)
3890
3890
let exe = try result. moduleBuildDescription ( for: " exe " ) . swift ( ) . compileArguments ( )
You can’t perform that action at this time.
0 commit comments