Skip to content

Commit

Permalink
Add -latomic as implicit flag to toolchain
Browse files Browse the repository at this point in the history
Summary: Needed to support <atomic> includes and avoid linker errors

Reviewed By: bigfootjon

Differential Revision: D62590238

fbshipit-source-id: f085f6cc0b383f306a5dfdd859e4e6c393fadf08
  • Loading branch information
ckwalsh authored and facebook-github-bot committed Sep 16, 2024
1 parent 1e2923e commit 9b88eeb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions shim/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ oncall("open_source")
system_cxx_toolchain(
name = "cxx",
cxx_flags = ["-std=c++20"],
link_flags = select({
"DEFAULT": [],
"prelude//os:linux": [
"-latomic",
],
}),
visibility = ["PUBLIC"],
)

Expand Down

0 comments on commit 9b88eeb

Please sign in to comment.