File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 3131 'variables' : {
3232 'v8_target_arch%' : '<(target_arch)' ,
3333
34+ 'v8_current_cpu%' : '<(target_arch)' ,
35+
3436 # Emulate GN variables
3537 'conditions' : [
3638 ['OS=="android"' , { # GYP reverts OS to linux so use `-D OS=android`
Original file line number Diff line number Diff line change 361361 '../src/builtins/builtins-intl-gen.cc' ,
362362 ],
363363 }],
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+ ],
364376 ],
365377 }, # v8_initializers
366378 {
You can’t perform that action at this time.
0 commit comments