diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2021-03-08 05:06:33 +0000 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2021-03-08 05:07:26 +0000 |
commit | e94e55712c0adb49adcd14c1839e9e30a8e2e6f1 (patch) | |
tree | e0c3a8650a46a716829f9d342b74ffd8ae2c8e15 /mlir/test/Examples | |
parent | df9158c9a45a6902c2b0394f9bd6512e3e441f31 (diff) | |
download | llvm-e94e55712c0adb49adcd14c1839e9e30a8e2e6f1.zip llvm-e94e55712c0adb49adcd14c1839e9e30a8e2e6f1.tar.gz llvm-e94e55712c0adb49adcd14c1839e9e30a8e2e6f1.tar.bz2 |
Forward the `LLVM_ENABLE_LIBCXX` CMake parameter to the mlir standalone test
This allows to build and test MLIR with `-DLLVM_ENABLE_LIBCXX=ON`.
Diffstat (limited to 'mlir/test/Examples')
-rw-r--r-- | mlir/test/Examples/standalone/lit.local.cfg | 1 | ||||
-rw-r--r-- | mlir/test/Examples/standalone/test.toy | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/mlir/test/Examples/standalone/lit.local.cfg b/mlir/test/Examples/standalone/lit.local.cfg index 481b809..1744d78 100644 --- a/mlir/test/Examples/standalone/lit.local.cfg +++ b/mlir/test/Examples/standalone/lit.local.cfg @@ -1,3 +1,4 @@ config.substitutions.append(("%cmake", config.host_cmake)) config.substitutions.append(("%host_cxx", config.host_cxx)) config.substitutions.append(("%host_cc", config.host_cc)) +config.substitutions.append(("%enable_libcxx", config.enable_libcxx)) diff --git a/mlir/test/Examples/standalone/test.toy b/mlir/test/Examples/standalone/test.toy index 7b4a9c2..0f9d0cc 100644 --- a/mlir/test/Examples/standalone/test.toy +++ b/mlir/test/Examples/standalone/test.toy @@ -1,4 +1,4 @@ -# RUN: %cmake %mlir_src_root/examples/standalone -DCMAKE_CXX_COMPILER=%host_cxx -DCMAKE_C_COMPILER=%host_cc -DMLIR_DIR=%llvm_lib_dir/cmake/mlir ; %cmake --build . --target check-standalone | tee %t | FileCheck %s +# RUN: %cmake %mlir_src_root/examples/standalone -DCMAKE_CXX_COMPILER=%host_cxx -DCMAKE_C_COMPILER=%host_cc -DLLVM_ENABLE_LIBCXX=%enable_libcxx -DMLIR_DIR=%llvm_lib_dir/cmake/mlir ; %cmake --build . --target check-standalone | tee %t | FileCheck %s # CHECK: Passed: 3 # UNSUPPORTED: windows, android |