meson: Add option to pass cpu #28
|
@ -6,7 +6,11 @@ project(
|
|||
version : run_command('head', files('VERSION')).stdout()
|
||||
)
|
||||
|
||||
cpu = host_machine.cpu_family()
|
||||
cpu = get_option('cpu')
|
||||
if cpu == ''
|
||||
cpu = host_machine.cpu_family()
|
||||
endif
|
||||
|
||||
if cpu == 'sh4'
|
||||
cpu = 'sh'
|
||||
endif
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
option('freestanding', type : 'boolean', value : false,
|
||||
description: 'Do not use system headers')
|
||||
option('export_unprefixed', type : 'boolean', value : true,
|
||||
description: 'Export POSIX 2004 ucontext names as alises')
|
||||
description: 'Export POSIX 2004 ucontext names as alises')
|
||||
option('cpu', type : 'string', value : '',
|
||||
description: 'Target CPU architecture for cross compile')
|
||||
|
|
Loading…
Reference in New Issue