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 and kiel-apple committed Jun 3, 2024
1 parent 1809a73 commit 9ab4ae2
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 9ab4ae2

Please sign in to comment.