| 1 |
project('C++-CUDA multi-std', 'cpp', 'cuda', |
| 2 |
version : '1.0.0', |
| 3 |
default_options : ['cpp_std=c++17', 'cuda_std=c++14']) |
| 4 |
|
| 5 |
# Regression test: Passing override_options used to cause a crash. |
| 6 |
# See https://github.com/mesonbuild/meson/issues/9448. |
| 7 |
libcpp11 = static_library('testcpp11', 'lib.cu', |
| 8 |
override_options: ['cpp_std=c++11'] |
| 9 |
) |
| 10 |
|
| 11 |
exe = executable('prog', 'main.cu', link_with: libcpp11) |
| 12 |
# The runtimes leak memory, so ignore it. |
| 13 |
test('cudatest', exe, env: ['ASAN_OPTIONS=detect_leaks=0']) |