Skip to content

Commit 39dde93

Browse files
committed
add_swift_host_library: rename LINK_LIBRARIES to LINK_LIBS
1 parent e0b8393 commit 39dde93

File tree

26 files changed

+33
-30
lines changed

26 files changed

+33
-30
lines changed

cmake/modules/AddSwift.cmake

+4-4
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ endfunction()
13221322
# [SHARED]
13231323
# [STATIC]
13241324
# [DEPENDS dep1 ...]
1325-
# [LINK_LIBRARIES dep1 ...]
1325+
# [LINK_LIBS lib1 ...]
13261326
# [INTERFACE_LINK_LIBRARIES dep1 ...]
13271327
# [SWIFT_MODULE_DEPENDS dep1 ...]
13281328
# [LLVM_COMPONENT_DEPENDS comp1 ...]
@@ -1343,7 +1343,7 @@ endfunction()
13431343
# DEPENDS
13441344
# Targets that this library depends on.
13451345
#
1346-
# LINK_LIBRARIES
1346+
# LINK_LIBS
13471347
# Libraries this library depends on.
13481348
#
13491349
# LLVM_COMPONENT_DEPENDS
@@ -1367,7 +1367,7 @@ function(add_swift_host_library name)
13671367
DEPENDS
13681368
INTERFACE_LINK_LIBRARIES
13691369
LINK_FLAGS
1370-
LINK_LIBRARIES
1370+
LINK_LIBS
13711371
LLVM_COMPONENT_DEPENDS)
13721372

13731373
cmake_parse_arguments(ASHL
@@ -1392,7 +1392,7 @@ function(add_swift_host_library name)
13921392
SDK ${SWIFT_HOST_VARIANT_SDK}
13931393
ARCHITECTURE ${SWIFT_HOST_VARIANT_ARCH}
13941394
DEPENDS ${ASHL_DEPENDS}
1395-
LINK_LIBRARIES ${ASHL_LINK_LIBRARIES}
1395+
LINK_LIBRARIES ${ASHL_LINK_LIBS}
13961396
LLVM_COMPONENT_DEPENDS ${ASHL_LLVM_COMPONENT_DEPENDS}
13971397
LINK_FLAGS ${ASHL_LINK_FLAGS}
13981398
INTERFACE_LINK_LIBRARIES ${ASHL_INTERFACE_LINK_LIBRARIES}

lib/AST/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ add_swift_host_library(swiftAST STATIC
6262
TypeWalker.cpp
6363
USRGeneration.cpp
6464

65-
LINK_LIBRARIES
65+
LINK_LIBS
6666
swiftMarkup
6767
swiftBasic
6868
swiftSyntax

lib/ASTSectionImporter/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
add_swift_host_library(swiftASTSectionImporter STATIC
22
ASTSectionImporter.cpp
3-
LINK_LIBRARIES swiftBasic
3+
LINK_LIBS swiftBasic
44
LLVM_COMPONENT_DEPENDS core)
55

lib/Basic/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ add_swift_host_library(swiftBasic STATIC
101101

102102
UnicodeExtendedGraphemeClusters.cpp.gyb
103103

104-
LINK_LIBRARIES
104+
LINK_LIBS
105105
swiftDemangling
106106
${UUID_LIBRARIES}
107107
LLVM_COMPONENT_DEPENDS support)

lib/ClangImporter/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ add_swift_host_library(swiftClangImporter STATIC
1616
ImportName.cpp
1717
ImportType.cpp
1818
SwiftLookupTable.cpp
19-
LINK_LIBRARIES
19+
LINK_LIBS
2020
swiftAST
2121
swiftParse
2222
)

lib/Driver/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ set(swiftDriver_targetDefines)
1919
add_swift_host_library(swiftDriver STATIC
2020
${swiftDriver_sources}
2121
DEPENDS SwiftOptions
22-
LINK_LIBRARIES swiftAST swiftBasic swiftOption)
22+
LINK_LIBS
23+
swiftAST swiftBasic swiftOption)
2324

2425
# Generate the static-stdlib-args.lnk file used by -static-stdlib option
2526
# for 'GenericUnix' (eg linux)

lib/Frontend/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ add_swift_host_library(swiftFrontend STATIC
1212
SerializedDiagnosticConsumer.cpp
1313
DEPENDS
1414
SwiftOptions
15-
LINK_LIBRARIES
15+
LINK_LIBS
1616
swiftSIL
1717
swiftMigrator
1818
swiftOption

lib/FrontendTool/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ add_swift_host_library(swiftFrontendTool STATIC
55
TBD.cpp
66
DEPENDS
77
swift-syntax-generated-headers SwiftOptions
8-
LINK_LIBRARIES
8+
LINK_LIBS
99
swiftIndex
1010
swiftIDE
1111
swiftTBDGen swiftIRGen swiftSIL swiftSILGen swiftSILOptimizer

lib/IDE/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ add_swift_host_library(swiftIDE STATIC
1313
IDETypeChecking.cpp
1414
APIDigesterData.cpp
1515
SourceEntityWalker.cpp
16-
LINK_LIBRARIES
16+
LINK_LIBS
1717
swiftFrontend
1818
swiftClangImporter
1919
swiftParse

lib/IRGen/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ add_swift_host_library(swiftIRGen STATIC
4949
SwiftTargetInfo.cpp
5050
TypeLayoutDumper.cpp
5151
TypeLayoutVerifier.cpp
52-
LINK_LIBRARIES
52+
LINK_LIBS
5353
swiftAST
5454
swiftLLVMPasses
5555
swiftSIL

lib/Immediate/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
add_swift_host_library(swiftImmediate STATIC
22
Immediate.cpp
33
REPL.cpp
4-
LINK_LIBRARIES
4+
LINK_LIBS
55
swiftIDE
66
swiftFrontend
77
swiftSILGen

lib/Index/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ add_swift_host_library(swiftIndex STATIC
33
IndexDataConsumer.cpp
44
IndexRecord.cpp
55
IndexSymbol.cpp
6-
LINK_LIBRARIES
6+
LINK_LIBS
77
swiftAST)

lib/Markup/CMakeLists.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ add_swift_host_library(swiftMarkup STATIC
22
AST.cpp
33
LineList.cpp
44
Markup.cpp
5-
6-
LINK_LIBRARIES
5+
LINK_LIBS
76
libcmark_static)
87
target_compile_definitions(swiftMarkup
98
PRIVATE

lib/Migrator/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ add_swift_host_library(swiftMigrator STATIC
4949
Migrator.cpp
5050
MigrationState.cpp
5151
RewriteBufferEditsReceiver.cpp
52-
LINK_LIBRARIES swiftSyntax swiftIDE)
52+
LINK_LIBS
53+
swiftSyntax swiftIDE)
5354

5455
add_dependencies(swiftMigrator
5556
"symlink_migrator_data")

lib/Option/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ add_swift_host_library(swiftOption STATIC
22
Options.cpp
33
SanitizerOptions.cpp
44
DEPENDS SwiftOptions
5-
LINK_LIBRARIES swiftBasic)
5+
LINK_LIBS
6+
swiftBasic)
67

lib/Parse/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ add_swift_host_library(swiftParse STATIC
1313
Scope.cpp
1414
SyntaxParsingCache.cpp
1515
SyntaxParsingContext.cpp
16-
LINK_LIBRARIES
16+
LINK_LIBS
1717
swiftAST
1818
swiftSyntax
1919
)

lib/ParseSIL/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
add_swift_host_library(swiftParseSIL STATIC
22
ParseSIL.cpp
3-
LINK_LIBRARIES
3+
LINK_LIBS
44
swiftParse
55
swiftSema
66
swiftSIL

lib/PrintAsObjC/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
add_swift_host_library(swiftPrintAsObjC STATIC
22
PrintAsObjC.cpp
3-
LINK_LIBRARIES
3+
LINK_LIBS
44
swiftIDE
55
swiftFrontend
66
swiftClangImporter

lib/RemoteAST/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ add_swift_host_library(swiftRemoteAST STATIC
1515
RemoteAST.cpp
1616
InProcessMemoryReader.cpp
1717
${REMOTE_LIB_HEADERS}
18-
LINK_LIBRARIES
18+
LINK_LIBS
1919
swiftSema swiftIRGen)

lib/SIL/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ add_swift_host_library(swiftSIL STATIC
4444
SILWitnessTable.cpp
4545
TypeLowering.cpp
4646
ValueOwnership.cpp
47-
LINK_LIBRARIES
47+
LINK_LIBS
4848
swiftSerialization
4949
swiftSema
5050
)

lib/SILGen/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ add_swift_host_library(swiftSILGen STATIC
3030
SILGenStmt.cpp
3131
SILGenThunk.cpp
3232
SILGenType.cpp
33-
LINK_LIBRARIES
33+
LINK_LIBS
3434
swiftSIL
3535
)

lib/SILOptimizer/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ add_subdirectory(Utils)
3535

3636
add_swift_host_library(swiftSILOptimizer STATIC
3737
${SILOPTIMIZER_SOURCES}
38-
LINK_LIBRARIES swiftSIL)
38+
LINK_LIBS
39+
swiftSIL)

lib/Sema/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ add_swift_host_library(swiftSema STATIC
5858
TypeCheckSwitchStmt.cpp
5959
TypeCheckType.cpp
6060
TypeChecker.cpp
61-
LINK_LIBRARIES
61+
LINK_LIBS
6262
swiftParse
6363
swiftAST
6464
swiftSerialization

lib/Serialization/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ add_swift_host_library(swiftSerialization STATIC
77
SerializedSILLoader.cpp
88
SerializeDoc.cpp
99
SerializeSIL.cpp
10-
LINK_LIBRARIES
10+
LINK_LIBS
1111
swiftClangImporter)
1212

lib/SwiftDemangle/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ add_swift_host_library(swiftDemangle
22
SHARED
33
SwiftDemangle.cpp
44
MangleHack.cpp
5-
LINK_LIBRARIES
5+
LINK_LIBS
66
swiftDemangling)
77
target_compile_definitions(swiftDemangle
88
PRIVATE

lib/TBDGen/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ add_subdirectory(tapi)
33
add_swift_host_library(swiftTBDGen STATIC
44
${TAPI_SOURCES}
55
TBDGen.cpp
6-
LINK_LIBRARIES
6+
LINK_LIBS
77
swiftAST
88
swiftSIL
99
)

0 commit comments

Comments
 (0)