Skip to content

Commit 342b0bd

Browse files
committed
[CMake] Remove set(CACHE) line for SWIFT_MODULE_ABI_NAME_PREFIX
Due to https://cmake.org/cmake/help/latest/policy/CMP0126.html set(CACHE) overwrites the existing value if the cache has not been set to any value. Since we don't need any default value, just remove it. (cherry picked from commit d8c8695)
1 parent da05f0e commit 342b0bd

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ project(SwiftSyntax LANGUAGES C Swift)
1515
set(SWIFT_VERSION 5)
1616
set(CMAKE_Swift_LANGUAGE_VERSION ${SWIFT_VERSION})
1717

18-
set(SWIFT_MODULE_ABI_NAME_PREFIX CACHE STRING "ABI name prefix to avoid name conflicts")
19-
2018
# The subdirectory into which host libraries will be installed.
2119
set(SWIFT_HOST_LIBRARIES_SUBDIRECTORY "swift/host")
2220

cmake/modules/AddSwiftHostLibrary.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ function(add_swift_host_library name)
5656
-emit-module-interface-path;${module_interface_file}
5757
>)
5858
if(SWIFT_MODULE_ABI_NAME_PREFIX)
59+
# ABI name prefix. this can be used to avoid name conflicts.
5960
target_compile_options("${name}" PRIVATE
6061
$<$<COMPILE_LANGUAGE:Swift>:
6162
"SHELL:-Xfrontend -module-abi-name"

0 commit comments

Comments
 (0)