Use arch_flags, which is actually referred to
This commit is contained in:
@@ -335,18 +335,18 @@ if system == 'darwin'
|
|||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
if architecture == 'aarch64'
|
if architecture == 'aarch64'
|
||||||
mac_platform_arguments = [
|
arch_flags += [
|
||||||
'-arch', 'arm64',
|
'-arch', 'arm64',
|
||||||
]
|
]
|
||||||
if not have_version_min
|
if not have_version_min
|
||||||
mac_platform_arguments += [ '-mmacosx-version-min=11' ]
|
arch_flags += [ '-mmacosx-version-min=11' ]
|
||||||
endif
|
endif
|
||||||
elif architecture == 'x86_64'
|
elif architecture == 'x86_64'
|
||||||
mac_platform_arguments = [
|
arch_flags += [
|
||||||
'-arch', 'x86_64',
|
'-arch', 'x86_64',
|
||||||
]
|
]
|
||||||
if not have_version_min
|
if not have_version_min
|
||||||
mac_platform_arguments += [ '-mmacosx-version-min=10.13' ]
|
arch_flags += [ '-mmacosx-version-min=10.13' ]
|
||||||
endif
|
endif
|
||||||
else # begin architecture != 'aarch64' or 'x86_64'
|
else # begin architecture != 'aarch64' or 'x86_64'
|
||||||
error('Build for architecture ' + architecture + ' is not supported on this platform')
|
error('Build for architecture ' + architecture + ' is not supported on this platform')
|
||||||
|
|||||||
Reference in New Issue
Block a user