File tree Expand file tree Collapse file tree 4 files changed +16
-8
lines changed
tools/autobuilder-diagnostics Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -85,12 +85,12 @@ pkg_filegroup(
85
85
":swift-test-sdk-arch" ,
86
86
":resource-dir-arch" ,
87
87
] + select ({
88
- "@platforms//os:linux" : [
89
- ":incompatible-os" ,
90
- ],
91
88
"@platforms//os:macos" : [
92
89
":xcode-autobuilder" ,
93
90
],
91
+ "//conditions:default" : [
92
+ ":incompatible-os" ,
93
+ ],
94
94
}),
95
95
visibility = ["//visibility:public" ],
96
96
)
Original file line number Diff line number Diff line change 3
3
#include < filesystem>
4
4
#include < stdlib.h>
5
5
#include < optional>
6
+ #ifdef _WIN32
7
+ #include < process.h>
8
+ #else
6
9
#include < unistd.h>
10
+ #endif
7
11
#include " absl/strings/str_cat.h"
8
12
9
13
#define LEVEL_REGEX_PATTERN " trace|debug|info|warning|error|critical|no_logs"
Original file line number Diff line number Diff line change @@ -10,11 +10,13 @@ def _wrap_cc(rule, kwargs):
10
10
# temporary, before we do universal merging
11
11
"-universal_binaries" ,
12
12
])
13
- _add_args (kwargs , "target_compatible_with" , select ({
14
- "@platforms//os:linux" : [],
15
- "@platforms//os:macos" : [],
16
- "//conditions:default" : ["@platforms//:incompatible" ],
17
- }))
13
+ if "target_compatible_with" not in kwargs :
14
+ # Restrict to Linux or macOS by default, but allow overriding
15
+ _add_args (kwargs , "target_compatible_with" , select ({
16
+ "@platforms//os:linux" : [],
17
+ "@platforms//os:macos" : [],
18
+ "//conditions:default" : ["@platforms//:incompatible" ],
19
+ }))
18
20
rule (** kwargs )
19
21
20
22
def swift_cc_binary (** kwargs ):
Original file line number Diff line number Diff line change @@ -7,4 +7,6 @@ swift_cc_binary(
7
7
deps = [
8
8
"//swift/logging" ,
9
9
],
10
+ # No restrictions (Windows allowed)
11
+ target_compatible_with = [],
10
12
)
You can’t perform that action at this time.
0 commit comments