File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,11 @@ def _wrap_cc(rule, kwargs):
5
5
_add_args (kwargs , "copts" , [
6
6
# Required by LLVM/Swift
7
7
"-fno-rtti" ,
8
- ])
8
+ ] + select ({
9
+ # temporary, before we do universal merging and have an arm prebuilt package, we make arm build x86
10
+ "@platforms//os:macos" : ["-arch=x86_64" ],
11
+ "//conditions:default" : [],
12
+ }))
9
13
_add_args (kwargs , "features" , [
10
14
# temporary, before we do universal merging
11
15
"-universal_binaries" ,
Original file line number Diff line number Diff line change 1
1
package (default_visibility = ["//swift:__subpackages__" ])
2
2
3
+ #TODO we will be introducing universal binaries at a later stage, when we have both architectures prebuilt for macOS
4
+ # for the moment, we make arm build an x86_64 binary
5
+ _arch_override = {
6
+ "darwin_arm64" : "darwin_x86_64" ,
7
+ }
8
+
3
9
[
4
10
alias (
5
11
name = name ,
6
12
actual = select ({
7
- "@bazel_tools//src/conditions:%s" % arch : "@swift_prebuilt_%s//:%s" % (arch , name )
13
+ "@bazel_tools//src/conditions:%s" % arch : "@swift_prebuilt_%s//:%s" % (
14
+ _arch_override .get (arch , arch ),
15
+ name ,
16
+ )
8
17
for arch in ("linux" , "darwin_x86_64" , "darwin_arm64" )
9
18
}),
10
- ) for name in ("swift-llvm-support" , "swift-test-sdk" )
19
+ )
20
+ for name in ("swift-llvm-support" , "swift-test-sdk" )
11
21
]
You can’t perform that action at this time.
0 commit comments