When building in debug mode, the link time of the standalone sample is excessive, taking upwards of a minute if using BFD. This at least allows lld to be used if the main invocation was configured that way. On my machine, this gets a standalone test that requires a relink to run in ~13s for Debug mode. This is still a lot, but better than it was. I think we may want to do something about this test: it adds a lot of latency to a normal compile/test cycle and requires a bunch of arg fiddling to exclude. I think we may end up wanting a `check-mlir-heavy` target that can be used just prior to submit, and then make `check-mlir` just run unit/lite tests. More just thoughts for the future (none of that is done here). Reviewed By: bondhugula, mehdi_amini Differential Revision: https://reviews.llvm.org/D126585
11 lines
477 B
Plaintext
11 lines
477 B
Plaintext
# RUN: %cmake_exe %mlir_src_root/examples/standalone -G "%cmake_generator" \
|
|
# RUN: -DCMAKE_CXX_COMPILER=%host_cxx -DCMAKE_C_COMPILER=%host_cc \
|
|
# RUN: -DLLVM_ENABLE_LIBCXX=%enable_libcxx -DMLIR_DIR=%mlir_cmake_dir \
|
|
# RUN: -DLLVM_USE_LINKER=%llvm_use_linker
|
|
# RUN: %cmake_exe --build . --target check-standalone | tee %t | FileCheck %s
|
|
|
|
# Note: The number of checked tests is not important. The command will fail
|
|
# if any fail.
|
|
# CHECK: Passed
|
|
# UNSUPPORTED: windows, android
|