1- REM A workaround for activate-dpcpp.bat issue to be addressed in 2021.4
1+ :: A workaround for activate-dpcpp.bat issue to be addressed in 2021.4
22set " LIB = %BUILD_PREFIX% \Library\lib;%BUILD_PREFIX% \compiler\lib;%LIB% "
33set " INCLUDE = %BUILD_PREFIX% \include;%INCLUDE% "
44
5+ :: Treat warnings from the INCLUDE as external (a part of the above workaround)
6+ :: The warning from the DPC++ compiler will be suppressed then
7+ set " CFLAGS = %FLAG% /external:env:INCLUDE"
8+ set " CXXFLAGS = %CXXFLAGS% /external:env:INCLUDE"
9+
510" %PYTHON% " setup.py clean --all
611
712set " MKLROOT = %PREFIX% /Library"
813set " TBB_ROOT_HINT = %PREFIX% /Library"
914set " DPL_ROOT_HINT = %PREFIX% /Library"
1015
11- REM Overriding IPO is useful for building in resources constrained VMs (public CI)
16+ :: Overriding IPO is useful for building in resources constrained VMs (public CI)
1217if DEFINED OVERRIDE_INTEL_IPO (
1318 set " CMAKE_ARGS = %CMAKE_ARGS% -DCMAKE_INTERPROCEDURAL_OPTIMIZATION:BOOL=FALSE"
1419)
1520
1621FOR %%V IN (17.0.0 17 18.0.0 18 19.0.0 19 20.0.0 20 21.0.0 21 22.0.0 22) DO @ (
17- REM set DIR_HINT if directory exists
22+ :: set DIR_HINT if directory exists
1823 IF EXIST " %BUILD_PREFIX% \Library\lib\clang\%%V \" (
1924 set " SYCL_INCLUDE_DIR_HINT = %BUILD_PREFIX% \Library\lib\clang\%%V "
2025 )
@@ -24,8 +29,8 @@ set "PATCHED_CMAKE_VERSION=3.26"
2429set " PLATFORM_DIR = %PREFIX% \Library\share\cmake-%PATCHED_CMAKE_VERSION% \Modules\Platform"
2530set " FN = Windows-IntelLLVM.cmake"
2631
27- rem Save the original file, and copy patched file to
28- rem fix the issue with IntelLLVM integration with cmake on Windows
32+ :: Save the original file, and copy patched file to
33+ :: fix the issue with IntelLLVM integration with cmake on Windows
2934if EXIST " %PLATFORM_DIR% " (
3035 dir " %PLATFORM_DIR% \%FN% "
3136 copy /Y " %PLATFORM_DIR% \%FN% " .
0 commit comments