MAINT: Move -m64 out to cpu_family()

This commit is contained in:
Rohit Goswami 2024-04-08 02:17:26 +00:00 committed by Mateusz Sokół
parent 9d9b4337ad
commit 61aab3ce11
3 changed files with 4 additions and 2 deletions

View File

@ -83,7 +83,6 @@ _static_libs += static_library(
'rot.c',
include_directories: _inc,
c_args: [
'-m64',
'-DSMP_SERVER',
'-DNO_WARMUP',
'-DMAX_CPU_NUMBER=12',

View File

@ -786,7 +786,6 @@ _configs = [
'undef': ['COMPLEX', 'COMPLEX'],
'def': ['DOUBLE'],
'addl': [fma3_flag,
'-m64',
'-DSMP_SERVER',
'-DNO_WARMUP',
'-DMAX_CPU_NUMBER=12',

View File

@ -153,6 +153,10 @@ if cpu_fam in ['x86_64', 'ppc64', 'ppc']
], language:'c')
endif
if cpu_fam == 'x86_64'
_cargs += ['-m64']
endif
if fc_id == 'gcc'
add_project_arguments('-DF_INTERFACE_GFORT', language: 'c')
elif fc_id == 'g95'