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