File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
utils/swift_build_support/swift_build_support/products Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -182,3 +182,16 @@ def get_dependencies(cls):
182
182
xctest .XCTest ,
183
183
llbuild .LLBuild ,
184
184
swift_testing .SwiftTesting ]
185
+
186
+ def _get_toolchain_path (host_target , product , args ):
187
+ # TODO check if we should prefer using product.install_toolchain_path
188
+ # this logic initially was inside run_build_script_helper
189
+ # and was factored out so it can be used in testing as well
190
+
191
+ toolchain_path = product .host_install_destdir (host_target )
192
+ if platform .system () == 'Darwin' :
193
+ # The prefix is an absolute path, so concatenate without os.path.
194
+ toolchain_path += \
195
+ targets .darwin_toolchain_prefix (args .install_prefix )
196
+
197
+ return toolchain_path
You can’t perform that action at this time.
0 commit comments