Skip to content

Commit cdfd34a

Browse files
author
Sebastien Stormacq
committed
Merge branch 'main' into sebsto/awslabs
2 parents 951d4aa + 007ac1f commit cdfd34a

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.github/workflows/scripts/check-link-foundation.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ LIBS_TO_CHECK="libFoundation.so libFoundationInternationalization.so lib_Foundat
2525
pushd Examples/${EXAMPLE} || fatal "Failed to change directory to Examples/${EXAMPLE}."
2626

2727
# recompile the example without the --static-swift-stdlib flag
28-
LAMBDA_USE_LOCAL_DEPS=../.. swift build -c release -Xlinker -s || fatal "Failed to build the example."
28+
LAMBDA_USE_LOCAL_DEPS=../.. swift build -c release || fatal "Failed to build the example."
2929

3030
# check if the binary exists
3131
if [ ! -f "${OUTPUT_FILE}" ]; then
32-
error "${OUTPUT_FILE} does not exist."
32+
fatal "${OUTPUT_FILE} does not exist."
3333
fi
3434

3535
# Checking for Foundation or ICU dependencies
36-
echo "Checking for Foundation or ICU dependencies in ${OUTPUT_DIR}/${OUTPUT_FILE}."
36+
echo "Checking for Foundation or ICU dependencies in ${OUTPUT_FILE}."
3737
LIBRARIES=$(ldd ${OUTPUT_FILE} | awk '{print $1}')
3838
for LIB in ${LIBS_TO_CHECK}; do
3939
echo -n "Checking for ${LIB}... "

Sources/AWSLambdaRuntime/LambdaRuntime.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ import Logging
1616
import NIOCore
1717
import Synchronization
1818

19-
#if canImport(FoundationEssentials)
20-
import FoundationEssentials
21-
#else
22-
import Foundation
23-
#endif
24-
2519
// This is our guardian to ensure only one LambdaRuntime is running at the time
2620
// We use an Atomic here to ensure thread safety
2721
@available(LambdaSwift 2.0, *)

0 commit comments

Comments
 (0)