Skip to content

Commit 2a92bc7

Browse files
Only copy Windows-IntelLLVM.cmake if the PLATFORM_DIR exists
1 parent c0e74da commit 2a92bc7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

conda-recipe/bld.bat

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ set "FN=Windows-IntelLLVM.cmake"
1818

1919
rem Save the original file, and copy patched file to
2020
rem fix the issue with IntelLLVM integration with cmake on Windows
21-
dir "%PLATFORM_DIR%\%FN%"
22-
copy /Y "%PLATFORM_DIR%\%FN%" .
23-
if errorlevel 1 exit 1
24-
copy /Y .github\workflows\Windows-IntelLLVM.cmake "%PLATFORM_DIR%"
25-
if errorlevel 1 exit 1
21+
if EXIST "%PLATFORM_DIR%" (
22+
dir "%PLATFORM_DIR%\%FN%"
23+
copy /Y "%PLATFORM_DIR%\%FN%" .
24+
if errorlevel 1 exit 1
25+
copy /Y .github\workflows\Windows-IntelLLVM.cmake "%PLATFORM_DIR%"
26+
if errorlevel 1 exit 1
27+
)
2628

2729
if NOT "%WHEELS_OUTPUT_FOLDER%"=="" (
2830
rem Install and assemble wheel package from the build bits

0 commit comments

Comments
 (0)