Commit 3af3375 1 parent bdd2b2c commit 3af3375 Copy full SHA for 3af3375
File tree 1 file changed +15
-4
lines changed
1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 6
6
'cflags' : ['-std=c99' ],
7
7
'conditions' : [
8
8
["OS=='mac'" , {
9
+ 'variables' : {
10
+ 'clang_version' :
11
+ '<!(cc -v 2>&1 | perl -ne \' print $1 if /clang version ([0-9]+(\.[0-9]+){2,})/\' )'
12
+ },
9
13
'xcode_settings' : {
10
- 'MACOSX_DEPLOYMENT_TARGET' : '10.7' ,
11
- 'OTHER_CFLAGS' : ['-arch x86_64' , '-arch arm64' ],
12
- 'OTHER_LDFLAGS' : ['-arch x86_64' , '-arch arm64' ]
13
- }
14
+ 'MACOSX_DEPLOYMENT_TARGET' : '10.7'
15
+ },
16
+ 'conditions' : [
17
+ # Use Perl v-strings to compare versions.
18
+ ['clang_version and <!(perl -e \' print <(clang_version) cmp 12.0.0\' )==1' , {
19
+ 'xcode_settings' : {
20
+ 'OTHER_CFLAGS' : ['-arch arm64' ],
21
+ 'OTHER_LDFLAGS' : ['-arch arm64' ]
22
+ }
23
+ }]
24
+ ]
14
25
}]
15
26
]
16
27
}
You can’t perform that action at this time.
0 commit comments