diff options
author | Evan Wilde <etceterawilde@gmail.com> | 2024-01-19 23:44:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-01-24 19:43:21 (GMT) |
commit | 4f49f7fc0bcfd22fd1870334694afd022dbebfd4 (patch) | |
tree | 41c3cf4eafe82651edd83e5ee12047d755f389bc /Tests | |
parent | 2dec0c03086e4bb872683d1f2e8d45f6c780e6af (diff) | |
download | CMake-4f49f7fc0bcfd22fd1870334694afd022dbebfd4.zip CMake-4f49f7fc0bcfd22fd1870334694afd022dbebfd4.tar.gz CMake-4f49f7fc0bcfd22fd1870334694afd022dbebfd4.tar.bz2 |
Tests: Fix SwiftOnly test on Windows
Add public symbols to SubA and SubB. The test was broken due to a
broken build graph. The build graph expects libraries to emit the
`.lib` file. `link.exe` only emits the implib if the library exports at
least one symbol. Because these two libraries were empty, nothing was
generated.
Fixing by adding a public symbol to both libraries.
Issue: #25573
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/SwiftOnly/SubA/SubA.swift | 1 | ||||
-rw-r--r-- | Tests/SwiftOnly/SubB/SubB.swift | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Tests/SwiftOnly/SubA/SubA.swift b/Tests/SwiftOnly/SubA/SubA.swift index e69de29..09ddd88 100644 --- a/Tests/SwiftOnly/SubA/SubA.swift +++ b/Tests/SwiftOnly/SubA/SubA.swift @@ -0,0 +1 @@ +public func hi() { print("hi") } diff --git a/Tests/SwiftOnly/SubB/SubB.swift b/Tests/SwiftOnly/SubB/SubB.swift index d593c4c..142fdaa 100644 --- a/Tests/SwiftOnly/SubB/SubB.swift +++ b/Tests/SwiftOnly/SubB/SubB.swift @@ -1 +1,3 @@ import SubA + +public var number = 42 |