Skip to content

Commit

Permalink
Linux: link with libatomic
Browse files Browse the repository at this point in the history
Use of atomic builtins (__atomic_*) can require -latomic depending on what gets
inlined (or not) on a particular platform.
  • Loading branch information
ksperling-apple committed May 29, 2024
1 parent 20b1457 commit 3c08c9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ config("runtime_default") {
}
if (current_os == "linux" || current_os == "tizen" || current_os == "webos") {
libs = [
"atomic",
"dl",
"pthread",
"rt",
Expand Down

0 comments on commit 3c08c9c

Please sign in to comment.