meson update

This commit is contained in:
rcxpony
2025-09-03 22:00:46 +05:00
parent 361964edf7
commit 5bf02d95ab
3 changed files with 8 additions and 8 deletions

View File

@@ -1,2 +1,2 @@
CompileFlags:
Remove: ['-Xcompiler=-Wall,-Winvalid-pch','-rdc=true','-prec-div=false','-Xptxas','-ftz=true','-prec-sqrt=false','-gencode','--default-stream','--expt-relaxed-constexpr']
Remove: ['-Xcompiler=-Wall,-Winvalid-pch','-rdc=true','-prec-div=false','-Xptxas','-ftz=true','-prec-sqrt=false','-gencode','--default-stream','--expt-relaxed-constexpr','-G']

View File

@@ -23,8 +23,7 @@ common_cpp_flags = [
common_cuda_flags = [
'-rdc=true',
'-Xptxas',
'-O3',
'-Xptxas', '-O3',
'-use_fast_math',
'-ftz=true',
'-prec-div=false',
@@ -39,9 +38,9 @@ add_project_arguments(common_cpp_flags, language: 'cpp')
add_project_arguments(common_cuda_flags, language: 'cuda')
if get_option('buildtype') == 'release'
add_project_arguments(['-DRELEASE', '-DAVX2'], language: ['cpp', 'cuda'])
add_project_arguments(['-DRELEASE'], language: ['cpp', 'cuda'])
elif get_option('buildtype') == 'debug'
add_project_arguments(['-DDEBUG', '-g', '-O0', '-DAVX2'], language: ['cpp', 'cuda'])
add_project_arguments(['-DDEBUG'], language: ['cpp', 'cuda'])
endif
cpp_sources = ['sources/main.cpp'] + files(run_command('find', 'libs', '-name','*.h').stdout().split())
@@ -50,10 +49,11 @@ cuda_sources = ['sources/main.cu'] + files(run_command('find', 'libs', '-name',
executable(
'yggmcu',
sources: cuda_sources,
link_args: ['-lcudart', '-L/usr/local/cuda/lib64'],
)
executable(
'yggmc',
sources: cpp_sources,
dependencies: dependency('libsodium'),
)
)

View File

@@ -1,4 +1,4 @@
[binaries]
cpp = 'clang++'
cuda = 'nvcc'
cuda_host_compiler = 'gcc-14'
cuda = '/opt/cuda/bin/nvcc'
cuda_host_compiler = '/opt/cuda/bin/nvcc'