Skip to content

Commit 896f802

Browse files
Linux: link with libatomic (#33628)
Use of atomic builtins (__atomic_*) can require -latomic depending on what gets inlined (or not) on a particular platform.
1 parent be60b12 commit 896f802

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build/config/compiler/BUILD.gn

+1
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ config("runtime_default") {
356356
}
357357
if (current_os == "linux" || current_os == "tizen" || current_os == "webos") {
358358
libs = [
359+
"atomic",
359360
"dl",
360361
"pthread",
361362
"rt",

0 commit comments

Comments
 (0)