We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 438b2a7 commit 150078fCopy full SHA for 150078f
tar_from_installation.sh
@@ -19,9 +19,6 @@ else
19
INSTALL_DIR=/opt/wasi-sdk
20
fi
21
22
-PKGDIR=build/wasi-sdk-$VERSION
23
-mkdir -p build
24
-
25
case "$(uname -s)" in
26
Linux*) MACHINE=linux;;
27
Darwin*) MACHINE=macos;;
@@ -35,8 +32,14 @@ if [ ! -d $INSTALL_DIR ] ; then
35
32
exit 1
36
33
37
34
+PKGDIR=build/wasi-sdk-$VERSION
38
rm -rf $PKGDIR
39
-cp -R $INSTALL_DIR $PKGDIR
+if [ "$MACHINE" == "cygwin" ] || [ "$MACHINE" == "mingw" ]; then
+ # Copy with -L to avoid trying to create symlinks on Windows.
+ cp -R -L $INSTALL_DIR $PKGDIR
40
+else
41
+ cp -R $INSTALL_DIR $PKGDIR
42
+fi
43
cd build
44
tar czf $OUTDIR/wasi-sdk-$VERSION\-$MACHINE.tar.gz wasi-sdk-$VERSION
45
0 commit comments