Skip to content

Commit 616662e

Browse files
committed
Fix static switch detection
... thank you bourne shell.
1 parent b579cf0 commit 616662e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/swift-lambda-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ spmBuild() {
254254
TARGET_OPT="${SWIFT_TARGET_OPT} ${SWIFT_TARGET_OPT//Xswiftc/Xcc} -Xcc -Wno-unused-command-line-argument"
255255

256256
# use static linking for Lambda
257-
if [[ "x${static}" = "yes" ]]; then
257+
if [[ "x${static}" = "xyes" ]]; then
258258
STATIC_LINK_OPT="-Xswiftc -static-stdlib"
259259
for static_lib in "${static_libs_a[@]}"; do
260260
STATIC_LINK_OPT="${STATIC_LINK_OPT} -Xswiftc -l${static_lib}"

0 commit comments

Comments
 (0)