Skip to content

Commit 33a20e6

Browse files
authored
Set CRYPTO_IN_SWIFTPM (#177)
Needed to expose SecureEncalve through SwiftCrypto when building for Swift-Certificates. CRYPTO_IN_SWIFTPM is set all of the time in package.swift, while CRYPTO_IN_SWIFTPM_FORCE_BUILD_API is only set in development. Lets enable the one that's on all of the time, and remove the one that isn't so that we get our declarations.
1 parent 65f8c60 commit 33a20e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Crypto/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ add_library(Crypto
8282
"Util/Zeroization.swift")
8383

8484
target_compile_definitions(Crypto PRIVATE
85-
CRYPTO_IN_SWIFTPM_FORCE_BUILD_API)
85+
"$<$<COMPILE_LANGUAGE:Swift>:CRYPTO_IN_SWIFTPM>")
8686
target_include_directories(Crypto PRIVATE
8787
$<TARGET_PROPERTY:CCryptoBoringSSL,INCLUDE_DIRECTORIES>
8888
$<TARGET_PROPERTY:CCryptoBoringSSLShims,INCLUDE_DIRECTORIES>

0 commit comments

Comments
 (0)