Skip to content

Commit 97f2404

Browse files
committed
Suppress the compiler warnings marking them as external
1 parent 9c4aed2 commit 97f2404

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

conda-recipe/bld.bat

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
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
22
set "LIB=%BUILD_PREFIX%\Library\lib;%BUILD_PREFIX%\compiler\lib;%LIB%"
33
set "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

712
set "MKLROOT=%PREFIX%/Library"
813
set "TBB_ROOT_HINT=%PREFIX%/Library"
914
set "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)
1217
if DEFINED OVERRIDE_INTEL_IPO (
1318
set "CMAKE_ARGS=%CMAKE_ARGS% -DCMAKE_INTERPROCEDURAL_OPTIMIZATION:BOOL=FALSE"
1419
)
1520

1621
FOR %%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"
2429
set "PLATFORM_DIR=%PREFIX%\Library\share\cmake-%PATCHED_CMAKE_VERSION%\Modules\Platform"
2530
set "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
2934
if EXIST "%PLATFORM_DIR%" (
3035
dir "%PLATFORM_DIR%\%FN%"
3136
copy /Y "%PLATFORM_DIR%\%FN%" .

0 commit comments

Comments
 (0)