From 300ebbd4ce4e87d2fa51671af4b2e23be9a48c39 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Wed, 24 Jul 2024 09:58:12 +1100 Subject: [PATCH] don't run check-llvm on osx/win due to timeouts --- recipe/bld.bat | 3 ++- recipe/build.sh | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/recipe/bld.bat b/recipe/bld.bat index 40611d53..2ea64c3e 100644 --- a/recipe/bld.bat +++ b/recipe/bld.bat @@ -34,7 +34,7 @@ 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 @@ -42,3 +42,4 @@ 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 diff --git a/recipe/build.sh b/recipe/build.sh index 1fa4e4a0..c3128ec0 100644 --- a/recipe/build.sh +++ b/recipe/build.sh @@ -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 @@ -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