File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
utils/swift_build_support/swift_build_support/products Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 10
10
#
11
11
# ----------------------------------------------------------------------------
12
12
13
+ import os
14
+
13
15
from . import product
14
16
from .. import shell
17
+ from .. import targets
15
18
16
19
17
20
class PythonKit (product .Product ):
@@ -27,14 +30,18 @@ def should_build(self, host_target):
27
30
return True
28
31
29
32
def build (self , host_target ):
33
+ toolchain_path = targets .toolchain_path (self .args .install_destdir ,
34
+ self .args .install_prefix )
35
+ swiftc = os .path .join (toolchain_path , 'usr' , 'bin' , 'swift' )
36
+
30
37
shell .call ([
31
38
self .toolchain .cmake ,
32
39
'-G' , 'Ninja' ,
33
40
'-D' , 'BUILD_SHARED_LIBS=YES' ,
34
41
'-D' , 'CMAKE_INSTALL_PREFIX={}/usr' .format (
35
42
self .args .install_destdir ),
36
43
'-D' , 'CMAKE_MAKE_PROGRAM={}' .format (self .toolchain .ninja ),
37
- '-D' , 'CMAKE_Swift_COMPILER={}' .format (self . toolchain . swiftc ),
44
+ '-D' , 'CMAKE_Swift_COMPILER={}' .format (swiftc ),
38
45
'-B' , self .build_dir ,
39
46
'-S' , self .source_dir ,
40
47
])
You can’t perform that action at this time.
0 commit comments