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.
This commit is contained in:
Evan Wilde authored and GitHub committed 2023-04-19 06:40:30 +01:00
1 parent 65f8c60ab3
commit 33a20e650c
1 file changed
+1 -1
+1 -1
View File
@@ -82,7 +82,7 @@ add_library(Crypto
"Util/Zeroization.swift")
target_compile_definitions(Crypto PRIVATE
CRYPTO_IN_SWIFTPM_FORCE_BUILD_API)
"$<$<COMPILE_LANGUAGE:Swift>:CRYPTO_IN_SWIFTPM>")
target_include_directories(Crypto PRIVATE
$<TARGET_PROPERTY:CCryptoBoringSSL,INCLUDE_DIRECTORIES>
$<TARGET_PROPERTY:CCryptoBoringSSLShims,INCLUDE_DIRECTORIES>