Skip to content

Commit

Permalink
don't run check-llvm on osx/win due to timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Jul 23, 2024
1 parent 0e2e9a3 commit 300ebbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ cmake -G "Ninja" ^
%SRC_DIR%/llvm
if %ERRORLEVEL% neq 0 exit 1

cmake --build .
cmake --build . --target install
if %ERRORLEVEL% neq 0 exit 1

REM bin\opt -S -vector-library=SVML -mcpu=haswell -O3 %RECIPE_DIR%\numba-3016.ll | bin\FileCheck %RECIPE_DIR%\numba-3016.ll
REM if %ERRORLEVEL% neq 0 exit 1

cd ..\llvm\test
python ..\..\build\bin\llvm-lit.py -vv Transforms ExecutionEngine Analysis CodeGen/X86
if %ERRORLEVEL% neq 0 exit 1
7 changes: 4 additions & 3 deletions recipe/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set -x
#!/bin/bash
set -ex

# Make osx work like linux.
sed -i.bak "s/NOT APPLE AND ARG_SONAME/ARG_SONAME/g" llvm/cmake/modules/AddLLVM.cmake
Expand Down Expand Up @@ -73,10 +74,10 @@ if [[ "$CONDA_BUILD_CROSS_COMPILATION" != "1" ]]; then

if [[ "$target_platform" == linux* ]]; then
ln -s $(which $CC) $BUILD_PREFIX/bin/gcc
# check-llvm takes >1.5h to build & run on osx
ninja -j${CPU_COUNT} check-llvm
fi

ninja -j${CPU_COUNT} check-llvm

cd ../llvm/test
python ../../build/bin/llvm-lit -vv Transforms ExecutionEngine Analysis CodeGen/X86
fi

0 comments on commit 300ebbd

Please sign in to comment.