Skip to content

Commit

Permalink
Sanitize and quote sdk path
Browse files Browse the repository at this point in the history
  • Loading branch information
OoLunar committed Mar 22, 2024
1 parent dab98f3 commit a6ce909
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/sodium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ jobs:
- name: Workaround for iOS
if: contains(matrix.config.rid, 'ios')
run: |
SDK_IPHONE_PATH=$(xcrun --show-sdk-path --sdk iphoneos)
SDK_IPHONE_PATH="$(xcrun --show-sdk-path --sdk iphoneos)"
SDK_IPHONE_PATH="$(sed 's/ /\\ /g' <<< $SDK_IPHONE_PATH)"
zig libc > libc.txt
sed -i "s/include_dir=/include_dir=$(SDK_IPHONE_PATH)/" libc.txt
sed -i "s/sys_include_dir=/sys_include_dir=$(SDK_IPHONE_PATH)/" libc.txt
Expand Down

0 comments on commit a6ce909

Please sign in to comment.