mirror of
https://github.com/hanzoai/utf-8-validate.git
synced 2026-09-24 17:03:57 +00:00
[build] Do not build a universal binary for macOS
This commit is contained in:
+1
-14
@@ -12,22 +12,9 @@
|
||||
'cflags_cc': ['-std=gnu++11'],
|
||||
'conditions': [
|
||||
["OS=='mac'", {
|
||||
'variables': {
|
||||
'clang_version':
|
||||
'<!(cc -v 2>&1 | perl -ne \'print $1 if /clang version ([0-9]+(\\.[0-9]+){2,})/\')'
|
||||
},
|
||||
'xcode_settings': {
|
||||
'MACOSX_DEPLOYMENT_TARGET': '10.7'
|
||||
},
|
||||
'conditions': [
|
||||
# Use Perl v-strings to compare versions.
|
||||
['clang_version and <!(perl -e \'print <(clang_version) cmp 12.0.0\')==1', {
|
||||
'xcode_settings': {
|
||||
'OTHER_CFLAGS': ['-arch arm64'],
|
||||
'OTHER_LDFLAGS': ['-arch arm64']
|
||||
}
|
||||
}]
|
||||
]
|
||||
}
|
||||
}]
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user