We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3fe9e7 + 3ede5a0 commit 9a101b7Copy full SHA for 9a101b7
cmake/modules/AddSwiftHostLibrary.cmake
@@ -54,7 +54,15 @@ function(add_swift_host_library name)
54
-emit-module-path;${module_file};
55
-emit-module-source-info-path;${module_sourceinfo_file};
56
-emit-module-interface-path;${module_interface_file}
57
+ >)
58
+ if(SWIFT_MODULE_ABI_NAME_PREFIX)
59
+ # ABI name prefix. this can be used to avoid name conflicts.
60
+ target_compile_options("${name}" PRIVATE
61
+ $<$<COMPILE_LANGUAGE:Swift>:
62
+ "SHELL:-Xfrontend -module-abi-name"
63
+ "SHELL:-Xfrontend ${SWIFT_MODULE_ABI_NAME_PREFIX}${name}"
64
>)
65
+ endif()
66
67
# NOTE: workaround for CMake not setting up include flags yet
68
set_target_properties(${name} PROPERTIES
0 commit comments