File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ if(CMAKE_VERSION VERSION_LESS 3.21)
22
22
endif ()
23
23
endif ()
24
24
25
+ set (SWIFT_MODULE_ABI_NAME_PREFIX CACHE STRING "ABI name prefix to avoid name conflicts" )
26
+
25
27
# The subdirectory into which host libraries will be installed.
26
28
set (SWIFT_HOST_LIBRARIES_SUBDIRECTORY "swift/host" )
27
29
Original file line number Diff line number Diff line change @@ -77,7 +77,14 @@ function(add_swift_syntax_library name)
77
77
-emit-module-path;${module_file};
78
78
-emit-module-source-info-path;${module_sourceinfo_file};
79
79
-emit-module-interface-path;${module_interface_file}
80
+ > )
81
+ if (SWIFT_MODULE_ABI_NAME_PREFIX )
82
+ target_compile_options ("${name} " PRIVATE
83
+ $< $< COMPILE_LANGUAGE:Swift> :
84
+ "SHELL:-Xfrontend -module-abi-name"
85
+ "SHELL:-Xfrontend ${SWIFT_MODULE_ABI_NAME_PREFIX}${name} "
80
86
> )
87
+ endif ()
81
88
82
89
if (CMAKE_VERSION VERSION_LESS 3.26.0 AND SWIFT_SYNTAX_ENABLE_WMO_PRE_3_26 )
83
90
target_compile_options (${name} PRIVATE
You can’t perform that action at this time.
0 commit comments