Almost exactly the same as how the dl dependency works. On certain systems (like BSDs that use clang), stdatomic is provided by compiler-rt and doesn't need a separate library explictly linked. On a typical GNU/LINUX system, atomic is a separate library that must be explictly found and linked against. So just add a builtin and system method for these two use cases.pull/13439/merge
parent
a004672685
commit
f070670e77
4 changed files with 48 additions and 0 deletions
@ -0,0 +1,9 @@ |
|||||||
|
## New custom dependency for atomic |
||||||
|
|
||||||
|
``` |
||||||
|
dependency('atomic') |
||||||
|
``` |
||||||
|
|
||||||
|
checks for the availability of the atomic operation library. First, it looks |
||||||
|
for the atomic library. If that is not found, then it will try to use what is |
||||||
|
provided by the libc. |
Loading…
Reference in new issue