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