Skip to content

Commit 300ebbd

Browse files
committed
don't run check-llvm on osx/win due to timeouts
1 parent 0e2e9a3 commit 300ebbd

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

recipe/bld.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ cmake -G "Ninja" ^
3434
%SRC_DIR%/llvm
3535
if %ERRORLEVEL% neq 0 exit 1
3636

37-
cmake --build .
37+
cmake --build . --target install
3838
if %ERRORLEVEL% neq 0 exit 1
3939

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

4343
cd ..\llvm\test
4444
python ..\..\build\bin\llvm-lit.py -vv Transforms ExecutionEngine Analysis CodeGen/X86
45+
if %ERRORLEVEL% neq 0 exit 1

recipe/build.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
set -x
1+
#!/bin/bash
2+
set -ex
23

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

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

78-
ninja -j${CPU_COUNT} check-llvm
79-
8081
cd ../llvm/test
8182
python ../../build/bin/llvm-lit -vv Transforms ExecutionEngine Analysis CodeGen/X86
8283
fi

0 commit comments

Comments
 (0)