Skip to content

Commit efe7ace

Browse files
committed
Update test.install-distribution-dir.toy
1 parent 0b66b50 commit efe7ace

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed

mlir/examples/standalone/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard to conform to")
88
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
99
find_package(MLIR REQUIRED CONFIG)
1010

11-
1211
# Define the default argument to use by `lit` when testing.
1312
set(LLVM_LIT_ARGS "-sv" CACHE STRING "Default options for lit")
1413

mlir/test/Examples/standalone/lit.local.cfg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ config.substitutions.append(("%llvm_use_linker", config.llvm_use_linker))
1313
config.substitutions.append(("%llvm_obj_root", config.llvm_obj_root))
1414
config.substitutions.append(("%llvm_src_root", config.llvm_src_root))
1515
config.substitutions.append(("%host_cmake_install_prefix", config.host_cmake_install_prefix))
16-
config.substitutions.append(("%host_cmake_cmd", config.host_cmake))
16+
config.substitutions.append(("%cmake_build_type", config.cmake_build_type))
17+
config.substitutions.append(("%cmake_c_compiler_launcher", config.cmake_c_compiler_launcher))
18+
config.substitutions.append(("%cmake_cxx_compiler_launcher", config.cmake_cxx_compiler_launcher))

mlir/test/Examples/standalone/test.install-dir.toy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# REQUIRES: github-actions
2+
# RUN: rm -rf %host_cmake_install_prefix
23
# RUN: "%cmake_exe" --build "%llvm_obj_root" --target install
34
# RUN: "%cmake_exe" "%mlir_src_root/examples/standalone" -G "%cmake_generator" \
45
# RUN: -DCMAKE_CXX_COMPILER=%host_cxx -DCMAKE_C_COMPILER=%host_cc \

mlir/test/Examples/standalone/test.install-distribution-dir.toy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# REQUIRES: github-actions
2-
# RUN: "%cmake_exe" "%llvm_src_root" -DLLVM_DISTRIBUTION_COMPONENTS="llvm-headers;llvm-libraries;cmake-exports;FileCheck;count;not;mlir-headers;mlir-libraries;mlir-cmake-exports;mlir-tblgen;mlir-python-sources"
2+
# RUN: rm -rf %host_cmake_install_prefix
3+
# RUN: "%cmake_exe" "%llvm_src_root" -DCMAKE_BUILD_TYPE=%cmake_build_type -B "%llvm_obj_root" \
4+
# RUN: -DLLVM_DISTRIBUTION_COMPONENTS="llvm-headers;llvm-libraries;cmake-exports;mlir-headers;mlir-libraries;mlir-cmake-exports;mlir-tblgen;mlir-python-sources"
35
# RUN: "%cmake_exe" --build "%llvm_obj_root" --target install-distribution
46
# RUN: "%cmake_exe" "%mlir_src_root/examples/standalone" -G "%cmake_generator" \
57
# RUN: -DCMAKE_CXX_COMPILER=%host_cxx -DCMAKE_C_COMPILER=%host_cc \

mlir/test/lit.cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def find_real_python_interpreter():
187187
llvm_config.with_environment("PATH", dirs, append_path=True)
188188

189189
tools = [
190-
"mlir-tblgen",
190+
ToolSubst("mlir-tblgen", pre=";", post=";", unresolved="fatal"),
191191
"mlir-translate",
192192
"mlir-lsp-server",
193193
"mlir-capi-execution-engine-test",

mlir/test/lit.site.cfg.py.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ config.host_cc = "@HOST_CC@"
1818
config.host_cxx = "@HOST_CXX@"
1919
config.enable_libcxx = "@LLVM_ENABLE_LIBCXX@"
2020
config.host_cmake = "@CMAKE_COMMAND@"
21+
config.cmake_build_type = "@CMAKE_BUILD_TYPE@"
22+
config.cmake_c_compiler_launcher = "@CMAKE_C_COMPILER_LAUNCHER@"
23+
config.cmake_cxx_compiler_launcher= "@CMAKE_CXX_COMPILER_LAUNCHER@"
2124
config.host_cmake_generator = "@CMAKE_GENERATOR@"
2225
config.host_cmake_install_prefix = "@CMAKE_INSTALL_PREFIX@"
2326
config.llvm_use_linker = "@LLVM_USE_LINKER@"

0 commit comments

Comments
 (0)