brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · c8d188a Raw
35 lines · plain
1# There's no real issue with windows here, it's just that some CMake generated paths for targets end up being longer2# than 255 chars when combined with the fact that pip wants to install into a tmp directory buried under3# C/Users/ContainerAdministrator/AppData/Local/Temp.4# UNSUPPORTED: target={{.*(windows).*}}5# REQUIRES: expensive_checks6# REQUIRES: non-shared-libs-build7# REQUIRES: bindings-python8 9# RUN: export CMAKE_BUILD_TYPE=%cmake_build_type10# RUN: export CMAKE_CXX_COMPILER=%host_cxx11# RUN: export CMAKE_CXX_COMPILER_LAUNCHER=%hostcxx_compiler_launcher12# RUN: export CMAKE_C_COMPILER=%host_cc13# RUN: export CMAKE_C_COMPILER_LAUNCHER=%hostc_compiler_launcher14# RUN: export CMAKE_GENERATOR=%cmake_generator15# RUN: export LLVM_USE_LINKER=%llvm_use_linker16# RUN: export MLIR_DIR="%mlir_cmake_dir"17 18# RUN: %python -m pip wheel "%mlir_src_root/examples/standalone" -w "%mlir_obj_root/wheelhouse" -v | tee %t19 20# RUN: rm -rf "%mlir_obj_root/standalone-python-bindings-install"21# RUN: %python -m pip install standalone_python_bindings -f "%mlir_obj_root/wheelhouse" --target "%mlir_obj_root/standalone-python-bindings-install" -v | tee -a %t22 23# RUN: export PYTHONPATH="%mlir_obj_root/standalone-python-bindings-install"24# RUN: %python "%mlir_src_root/examples/standalone/test/python/smoketest.py" nanobind | tee -a %t25 26# RUN: FileCheck --input-file=%t %s27 28# CHECK: Successfully built standalone-python-bindings29 30# CHECK: module {31# CHECK:   %[[C2:.*]] = arith.constant 2 : i3232# CHECK:   %[[V0:.*]] = standalone.foo %[[C2]] : i3233# CHECK: }34 35