Skip to content

Commit c13305a

Browse files
committed
[build-script] Add module ABI name prefix to swift-syntax libraries
Add 'Compiler' prefix to ABI names of swift-syntax libraries so that compiler libraries (e.g. sourcekitdInProc) can be used from binaries linking with swift-syntax (e.g. via SwiftPM) #68812 rdar://116951101
1 parent 2f52082 commit c13305a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

utils/build-windows-toolchain.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ cmake ^
214214

215215
-D CMAKE_INSTALL_PREFIX="%InstallRoot%" ^
216216

217+
-D SWIFT_MODULE_ABI_NAME_PREFIX="Compiler" ^
218+
217219
-G Ninja ^
218220
-S %SourceRoot%\swift-syntax || (exit /b)
219221
cmake --build %BuildRoot%\99 || (exit /b)

utils/swift_build_support/swift_build_support/products/earlyswiftsyntax.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def build(self, host_target):
6363
self.cmake_options.define('CMAKE_INSTALL_PREFIX:PATH', self.args.install_prefix)
6464
self.cmake_options.define('SWIFTSYNTAX_ENABLE_ASSERTIONS:BOOL',
6565
self.args.assertions)
66+
self.cmake_options.define('SWIFT_MODULE_ABI_NAME_PREFIX:STRING', 'Compiler')
6667
self.build_with_cmake(["all"], self.args.swift_build_variant, [])
6768

6869
def should_test(self, host_target):

0 commit comments

Comments
 (0)