File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 25
25
with :
26
26
license_header_check_project_name : " Swift"
27
27
docs_check_container_image : " swift:6.2-noble"
28
- docs_check_additional_arguments : " -DSWT_DOCC"
29
28
format_check_enabled : false
30
29
api_breakage_check_enabled : false
Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ let buildingForEmbedded: Bool = {
36
36
return Bool ( envvar) ?? ( ( Int ( envvar) ?? 0 ) != 0 )
37
37
} ( )
38
38
39
+ /// Whether or not we appear to be building the package for the documentation
40
+ /// soundness check we run in GitHub Actions.
41
+ let buildingForDocumentationSoundnessCheck : Bool = {
42
+ Context . environment [ " ADDITIONAL_DOCC_ARGUMENTS " ] != nil
43
+ } ( )
44
+
39
45
let package = Package (
40
46
name: " swift-testing " ,
41
47
@@ -389,6 +395,12 @@ extension Array where Element == PackageDescription.SwiftSetting {
389
395
. define( " SWT_NO_LIBDISPATCH " , . whenEmbedded( ) ) ,
390
396
]
391
397
398
+ if buildingForDocumentationSoundnessCheck {
399
+ result += [
400
+ . define( " SWT_DOCC " , . whenEmbedded( ) ) ,
401
+ ]
402
+ }
403
+
392
404
return result
393
405
}
394
406
You can’t perform that action at this time.
0 commit comments