Commit c4804184 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

CI: get more details on msvc install

parent c82bd6f9
......@@ -48,5 +48,9 @@ install:
script:
- source setup_windows_env.sh
- find '/c/Program Files (x86)/Microsoft Visual Studio/2017' -name "vcvarsall.bat"
- echo inside BuildTools/Common7/Tools
- ls '/c/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/Common7/Tools'
- cmd.exe /s /c "call C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\Common7\\Tools\\VsDevCmd.bat /help"
- echo $PATH
- ctest -VV -S ./ci.cmake
......@@ -8,13 +8,13 @@ eval "$(python -c '
import sys, os, subprocess
import distutils.msvc9compiler as msvc
msvc.find_vcvarsall=lambda _: sys.argv[1]
envs=msvc.query_vcvarsall(sys.argv[2])
envs=msvc.query_vcvarsall(arch='amd64')
for k,v in envs.items():
k = k.upper()
v = ":".join(subprocess.check_output(["cygpath","-u",p]).decode("utf-8").rstrip(" \n") for p in v.split(";"))
v = v.replace("'\''",r"'\'\\\'\''")
print("export %(k)s='\''%(v)s'\''" % locals())
' 'c:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/Common7/Tools/VsDevCmd.bat' '-arch=amd64'
' 'c:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/Common7/Tools/VsDevCmd.bat'
)"
export CC=cl.exe
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment