@@ -41,12 +41,9 @@ curl -L -o vs_buildtools.exe "https://aka.ms/vs/16/release/vs_buildtools.exe"
4141
4242# Verify installation
4343if [ -f " /c/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe" ]; then
44- echo " MSVC 14.29.30133 installed successfully!"
45- # Display compiler version
46- " /c/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe" 2>&1 | head -1
44+ echo " MSVC 14.29.30133 installed successfully!"
4745else
48- echo " Installation verification failed. Checking available versions..."
49- ls -la " /c/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/" || echo " MSVC directory not found"
46+ echo " Installation verification failed. Checking available versions..."
5047 exit 1
5148fi
5249
@@ -74,18 +71,10 @@ rm -r build
7471
7572cp README.md python/
7673cp $CTRANSLATE2_ROOT /bin/ctranslate2.dll python/ctranslate2/
77-
78- # Find the libiomp5md.dll file
74+
7975LIBIOMP5_PATH=$( find " C:/Program Files (x86)/Intel/oneAPI" -name " libiomp5md.dll" -type f 2> /dev/null | head -1)
80-
81- # Check if file was found
8276if [ -z " $LIBIOMP5_PATH " ]; then
83- echo " Error: libiomp5md.dll not found in Intel oneAPI installation."
84- echo " Please ensure Intel oneAPI HPC Toolkit (with compiler) is installed."
85- echo " "
86- echo " Alternative locations to check manually:"
87- echo " - C:/Program Files/Intel/oneAPI/compiler/*/windows/redist/intel64_win/compiler/"
88- echo " - C:/Program Files (x86)/Intel/oneAPI/compiler/*/windows/redist/intel64_win/compiler/"
77+ echo " Error: libiomp5md.dll not found in Intel oneAPI installation."
8978 exit 1
9079fi
9180echo " Found libiomp5md.dll at: $LIBIOMP5_PATH "
0 commit comments