mirror of
https://github.com/apple/swift-nio-ssl
synced 2026-11-26 04:57:52 +00:00
Motivation: When including an xcodeproj generated by SwiftPM (which builds CNIOBoringSSL) into an xcodeproj which wasn't generated by SwiftPM it doesn't know about the correct header paths. Modifications: Update the vendor-boringssl script to: - Namespace BoringSSL with CNIOBoringSSL_ instead of CNIOBoringSSL/ - Create an umbrealla CNIOBoringSSL header - Apply a patch to replace inttypes.h with sys/types.h in bn.h - Apply a patch to conditionally include arm_arch.h BoringSSL was also updated to: ae223d6138807a13006342edfeef32e813246b39 Result: Non-SwiftPM xcodeproj's can build a SwiftPM generated xcodeproj which includes CNIOBoringSSL.
19 lines
642 B
Diff
19 lines
642 B
Diff
diff --git a/Sources/CNIOBoringSSL/include/CNIOBoringSSL_arm_arch.h b/Sources/CNIOBoringSSL/include/CNIOBoringSSL_arm_arch.h
|
|
index faa2655..0e76796 100644
|
|
--- a/Sources/CNIOBoringSSL/include/CNIOBoringSSL_arm_arch.h
|
|
+++ b/Sources/CNIOBoringSSL/include/CNIOBoringSSL_arm_arch.h
|
|
@@ -49,7 +49,7 @@
|
|
* This product includes cryptographic software written by Eric Young
|
|
* (eay@cryptsoft.com). This product includes software written by Tim
|
|
* Hudson (tjh@cryptsoft.com). */
|
|
-
|
|
+#if __arm__
|
|
#ifndef OPENSSL_HEADER_ARM_ARCH_H
|
|
#define OPENSSL_HEADER_ARM_ARCH_H
|
|
|
|
@@ -119,3 +119,4 @@
|
|
|
|
|
|
#endif // OPENSSL_HEADER_ARM_ARCH_H
|
|
+#endif // __arm__
|