OSDN Git Service

.gitlab-ci.d/windows.yml: Enable native Windows symlink
authorBin Meng <bin.meng@windriver.com>
Mon, 25 Jul 2022 14:05:12 +0000 (15:05 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 29 Jul 2022 08:48:01 +0000 (09:48 +0100)
commit93a02e822fc65d8f16eb98f64af88d69ba3c9fd6
tree9597cab3d2be63637290959dce20d7b137cf77f1
parent6ad5208661643aad31328433aaaa2045805b12b8
.gitlab-ci.d/windows.yml: Enable native Windows symlink

The following error message was seen during the configure:

  "ln: failed to create symbolic link
  'x86_64-softmmu/qemu-system-x86_64.exe': No such file or directory"

By default the MSYS environment variable is not defined, so the runtime
behavior of winsymlinks is: if <target> does not exist, 'ln -s' fails.
At the configure phase, the qemu-system-x86_64.exe has not been built
so creation of the symbolic link fails hence the error message.

Set winsymlinks to 'native' whose behavior is most similar to the
behavior of 'ln -s' on *nix, that is:

  a) if native symlinks are enabled, and whether <target> exists
     or not, creates <destination> as a native Windows symlink;
  b) else if native symlinks are not enabled, and whether <target>
     exists or not, 'ln -s' creates as a Windows shortcut file.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220725123000.807608-1-bmeng.cn@gmail.com>
Message-Id: <20220725140520.515340-6-alex.bennee@linaro.org>
.gitlab-ci.d/windows.yml