mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-08 02:52:56 +02:00
Fix some minor issues with the Darwin polyfilling logic in meson.build
This commit is contained in:
parent
89809ea872
commit
30eb0352e8
1 changed files with 2 additions and 2 deletions
|
@ -353,8 +353,6 @@ if compilers['cpp'].has_header('sys/stat.h') and (not compilers['cpp'].has_heade
|
|||
endif
|
||||
|
||||
if host_system == 'darwin'
|
||||
global_args += '-faligned-allocation'
|
||||
|
||||
disable_availability = false
|
||||
|
||||
if not compilers['cpp'].compiles('''
|
||||
|
@ -390,7 +388,9 @@ if host_system == 'darwin'
|
|||
return operator new[](4, std::align_val_t(16), std::nothrow_t()) == nullptr;
|
||||
}
|
||||
''', args: ['-std=c++17'], name: 'aligned operator new sanity check')
|
||||
mkxp_polyfill_needs_cpp17 = true
|
||||
global_args += '-DMKXPZ_DARWIN_NO_ALIGNED_OPERATOR_NEW'
|
||||
global_args += '-faligned-allocation'
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue