File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
utils/swift_build_support/swift_build_support/products Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -71,15 +71,16 @@ def build(self, host_target):
71
71
'-D' , 'CMAKE_MAKE_PROGRAM={}' .format (self .toolchain .ninja ),
72
72
'-D' , 'CMAKE_Swift_COMPILER={}' .format (swiftc ),
73
73
# SWIFT_ENABLE_TENSORFLOW
74
+ '-DCMAKE_Swift_COMPILER_TARGET=x86_64-apple-macosx10.13' if host_target .startswith ('macosx' ) else '' ,
74
75
'-D' , 'USE_BUNDLED_CTENSORFLOW=YES' ,
75
- # SWIFT_ENABLE_TENSORFLOW END
76
76
'-D' , 'TensorFlow_INCLUDE_DIR={}' .format (tensorflow_source_dir ),
77
77
'-D' , 'TensorFlow_LIBRARY={}' .format (
78
78
os .path .join (tensorflow_source_dir , 'bazel-bin' , 'tensorflow' ,
79
79
lib_name )),
80
80
'-D' , 'CMAKE_Swift_FLAGS={}' .format ('-L{}' .format (
81
81
os .path .join (tensorflow_source_dir , 'bazel-bin' , 'tensorflow' ))
82
82
),
83
+ # SWIFT_ENABLE_TENSORFLOW END
83
84
'-B' , self .build_dir ,
84
85
'-S' , self .source_dir ,
85
86
])
You can’t perform that action at this time.
0 commit comments