libatomic.patch 675 B

123456789101112131415161718192021
  1. Link mksnapshot with libatomic on x86
  2. Clang-12 on x86 emits atomic builtins
  3. Fixes
  4. | module-compiler.cc:(.text._ZN2v88internal4wasm12_GLOBAL__N_123ExecuteCompilationUnitsERKSt10shared_ptrINS2_22BackgroundCompileTokenEEPNS0_8CountersEiNS2_19CompileBaselineOnlyE+0x558): un
  5. defined reference to `__atomic_load'
  6. Upstream-Status: Pending
  7. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  8. --- a/tools/v8_gypfiles/v8.gyp
  9. +++ b/tools/v8_gypfiles/v8.gyp
  10. @@ -1436,6 +1436,7 @@
  11. {
  12. 'target_name': 'mksnapshot',
  13. 'type': 'executable',
  14. + 'libraries': [ '-latomic' ],
  15. 'dependencies': [
  16. 'v8_base_without_compiler',
  17. 'v8_compiler_for_mksnapshot',