Project

General

Profile

Bug #3233

LLVM does not ship with stdatomic and libatomic

Added by mneumann about 2 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Other
Target version:
-
Start date:
04/16/2020
Due date:
% Done:

0%

Estimated time:

Description

Compilation of

#include <stdatomic.h>
int main(int argc, char **argv) {}

fails when compiled with clang. Works on gcc. Note that LLVM/clang will also
link against -latomic is some cases (-mcx16 ?), despite using opcodes instead of
library calls to libatomic (e.g. __atomic_compare_exchange_16). So, having a libatomic.a
would help too (even an empty one).

Also available in: Atom PDF