File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 31
31
'variables' : {
32
32
'v8_target_arch%' : '<(target_arch)' ,
33
33
34
+ 'v8_current_cpu%' : '<(target_arch)' ,
35
+
34
36
# Emulate GN variables
35
37
'conditions' : [
36
38
['OS=="android"' , { # GYP reverts OS to linux so use `-D OS=android`
Original file line number Diff line number Diff line change 361
361
'../src/builtins/builtins-intl-gen.cc' ,
362
362
],
363
363
}],
364
+ # Platforms that don't have Compare-And-Swap support need to link atomic
365
+ # library to implement atomic memory access
366
+ [ 'v8_current_cpu == "mips" or v8_current_cpu == "mipsel" or '
367
+ 'v8_current_cpu == "mips64" or v8_current_cpu == "mips64el" or '
368
+ 'v8_current_cpu == "ppc" or v8_current_cpu == "ppc64" or '
369
+ 'v8_current_cpu == "s390" or v8_current_cpu == "s390x"' ,
370
+ {
371
+ 'link_settings' : {
372
+ 'libraries' : [ '-latomic' , ],
373
+ },
374
+ },
375
+ ],
364
376
],
365
377
}, # v8_initializers
366
378
{
You can’t perform that action at this time.
0 commit comments