Skip to content

Commit 46187a1

Browse files
committed
undo build change
1 parent 39c4c5f commit 46187a1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

mssql_python/pybind/build.bat

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,22 @@ if exist "%OUTPUT_DIR%\%PYD_NAME%" (
157157
echo [WARNING] PDB file !PDB_NAME! not found in output directory.
158158
)
159159

160+
setlocal enabledelayedexpansion
161+
for %%I in ("%SOURCE_DIR%..") do (
162+
set PARENT_DIR=%%~fI
163+
)
164+
echo [DIAGNOSTIC] Parent is: !PARENT_DIR!
165+
166+
set VCREDIST_DLL_PATH=!PARENT_DIR!\libs\windows\!ARCH!\vcredist\msvcp140.dll
167+
echo [DIAGNOSTIC] Looking for msvcp140.dll at "!VCREDIST_DLL_PATH!"
168+
169+
if exist "!VCREDIST_DLL_PATH!" (
170+
copy /Y "!VCREDIST_DLL_PATH!" "%SOURCE_DIR%\.."
171+
echo [SUCCESS] Copied msvcp140.dll from !VCREDIST_DLL_PATH! to "%SOURCE_DIR%\.."
172+
) else (
173+
echo [ERROR] Could not find msvcp140.dll at "!VCREDIST_DLL_PATH!"
174+
exit /b 1
175+
)
160176
) else (
161177
echo [ERROR] Could not find built .pyd file: %PYD_NAME%
162178
REM Exit with an error code here if the .pyd file is not found

0 commit comments

Comments
 (0)