meson test -c builddir
FileNotFoundError: [Errno 2] No such file or directory: 'mono'
在Linux上运行简单的测试用例需要什么?
问题是,在Windows上运行时,可执行文件是
mono
Suffix
是
.exe
。当您使用Linux时,快速简便的修复是简单地将后缀更改为
exe = executable(
'main.bin', # Do not use .exe here
'main.cu',
link_args: '-fopenmp',
cuda_args: '-Xcompiler=-fopenmp',
)
test('simple_run', exe)
可以很好地运行。决定尝试在Linux上尝试使用
.exe
文件
mono
文件的决定来自Meson中的此精确line。