8000 [build-script] Add module ABI name prefix to swift-syntax libraries · rintaro/swift@ad81ad3 · GitHub
[go: up one dir, main page]

Skip to content

Commit ad81ad3

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

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

test/Macros/macro_plugin_error.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func test() {
3434
// FIXME: Should be more user friendly message.
3535

3636
let _: String = #fooMacro(1)
37-
// expected-error @-1 {{typeMismatch(SwiftCompilerPluginMessageHandling.PluginToHostMessage}}
37+
// expected-error @-1 {{typeMismatch(CompilerSwiftCompilerPluginMessageHandling.PluginToHostMessage}}
3838
let _: String = #fooMacro(2)
3939
// expected-error @-1 {{failed to receive result from plugin (from macro 'fooMacro')}}
4040
let _: String = #fooMacro(3)

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)
0