File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
utils/swift_build_support/swift_build_support/products Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,12 @@ def build(self, host_target):
47
47
except OSError :
48
48
pass
49
49
50
+ # SWIFT_ENABLE_TENSORFLOW
51
+ target = ''
52
+ if host_target .startswith ('macosx' ):
53
+ target = '-DCMAKE_Swift_COMPILER_TARGET=x86_64-apple-macosx10.13'
54
+ # SWIFT_ENABLE_TENSORFLOW END
55
+
50
56
with shell .pushd (self .build_dir ):
51
57
shell .call ([
52
58
self .toolchain .cmake ,
@@ -56,6 +62,9 @@ def build(self, host_target):
56
62
self .install_toolchain_path ()),
57
63
'-D' , 'CMAKE_MAKE_PROGRAM={}' .format (self .toolchain .ninja ),
58
64
'-D' , 'CMAKE_Swift_COMPILER={}' .format (swiftc ),
65
+ # SWIFT_ENABLE_TENSORFLOW
66
+ target ,
67
+ # SWIFT_ENABLE_TENSORFLOW END
59
68
'-B' , self .build_dir ,
60
69
'-S' , self .source_dir ,
61
70
])
You can’t perform that action at this time.
0 commit comments