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 2525 with :
2626 license_header_check_project_name : " Swift"
2727 docs_check_container_image : " swift:6.2-noble"
28- docs_check_additional_arguments : " -DSWT_DOCC"
2928 format_check_enabled : false
3029 api_breakage_check_enabled : false
Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ let buildingForEmbedded: Bool = {
3636 return Bool ( envvar) ?? ( ( Int ( envvar) ?? 0 ) != 0 )
3737} ( )
3838
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+
3945let package = Package (
4046 name: " swift-testing " ,
4147
@@ -389,6 +395,12 @@ extension Array where Element == PackageDescription.SwiftSetting {
389395 . define( " SWT_NO_LIBDISPATCH " , . whenEmbedded( ) ) ,
390396 ]
391397
398+ if buildingForDocumentationSoundnessCheck {
399+ result += [
400+ . define( " SWT_DOCC " , . whenEmbedded( ) ) ,
401+ ]
402+ }
403+
392404 return result
393405 }
394406
You can’t perform that action at this time.
0 commit comments