Skip to content

Commit

Permalink
Linux: link with libatomic (project-chip#33628)
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 authored May 30, 2024
1 parent be60b12 commit 896f802
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 896f802

Please sign in to comment.