diff options
author | Dan Gudmundsson <dgud@erlang.org> | 2020-02-14 14:12:17 +0100 |
---|---|---|
committer | Dan Gudmundsson <dgud@erlang.org> | 2020-02-14 14:12:17 +0100 |
commit | b986acb00956a0c79bf92a16ccf8057e89ab6ffc (patch) | |
tree | 6ca527fa7ef1dfdb1fc55c9f34ef4b5838fa0c22 /otp_build | |
parent | f1f7ee77fc77f44fc1ca94fdaedb5b7d5e2d9370 (diff) | |
parent | 9757ced839aa353969c923fc37c390ca9b7c9f13 (diff) | |
download | erlang-b986acb00956a0c79bf92a16ccf8057e89ab6ffc.tar.gz |
Merge branch 'dgud/fix-wsl-builds'
* dgud/fix-wsl-builds:
Use wsl openssl
Look for dump files to make them visible in monitor
Fix tests on WSL
Check argv size
Add WSL shell variable for makefiles
erts: Move erts_get_ethread_info implementation
kernel: Find executable from WSLPATH on windows
Fix ERTS_SKIP_DEPEND
Fix CLASSPATH with wsl
Fix executable extensions
Extend MSVC install paths
Diffstat (limited to 'otp_build')
-rwxr-xr-x | otp_build | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -812,7 +812,24 @@ setup_win32_cl_env () echo_setenv LIB "$LIB" ';' echo_setenv LIBPATH "$LIBPATH" ';' echo_setenv VCToolsRedistDir "$VCToolsRedistDir" ';' - echo_setenv WSLENV "$WSLENV" ';' + echo_setenv WSLENV "$WSLENV:WSLPATH/l:CLASSPATH/l" ';' + + save_ifs=$IFS + IFS=: + WSLPATH="" + for p in $PATH; do + if [ -d "$p" ]; then + case "$p" in + /mnt/c/*) + WSLPATH=$WSLPATH:$p + ;; + *) + ;; + esac + fi + done + IFS=$save_ifs + echo_setenv WSLPATH "$WSLPATH" ';' } lookup_prog_in_path () |