Skip to content

Commit 7591d44

Browse files
committed
Propagate Swift version information to the back-deployed binaries
1 parent c9e1032 commit 7591d44

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

utils/swift_build_support/swift_build_support/products/backdeployconcurrency.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ def build(self, host_target):
8484
self.cmake_options.define('SWIFT_HOST_VARIANT_ARCH:STRING', arch)
8585
self.cmake_options.define('BUILD_STANDALONE:BOOL', True)
8686

87+
# Propagate version information
88+
if self.args.swift_user_visible_version is not None:
89+
self.cmake_options.define('SWIFT_VERSION', str(self.args.swift_user_visible_version))
90+
if self.args.swift_compiler_version is not None:
91+
self.cmake_options.define('SWIFT_COMPILER_VERSION', str(self.args.swift_compiler_version))
92+
93+
8794
# Only install the "stdlib" component, which contains the concurrency
8895
# module.
8996
self.cmake_options.define('SWIFT_INSTALL_COMPONENTS:STRING', 'back-deployment')

0 commit comments

Comments
 (0)