Avoid compiling fallback_casx() on platforms that don't need it - lightning.git - Portable just-in-time compiler library

index : lightning.git
Portable just-in-time compiler library
summary refs log tree commit diff
path: root/lib/jit_loongarch-cpu.c
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2023年03月06日 23:25:11 +0000
committerpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2023年03月07日 08:33:31 -0300
commit87139e0f6c0c24db1458f5b7aca25f13bc4b6ac6 (patch)
tree8c635050b3aa7ea78e731ddcb4ba1c80e1aec8af /lib/jit_loongarch-cpu.c
parentba0f9f49fe1a94aad1ea19ac4a32881ad2a5ffe6 (diff)
downloadlightning-87139e0f6c0c24db1458f5b7aca25f13bc4b6ac6.tar.gz
Avoid compiling fallback_casx() on platforms that don't need it
fallback_casx() adds an unconditional dependency of Lightning on pthreads, even if the function is never used. To avoid that, and only depend on pthreads when needed, protect the _fallback_casx() function with a guard that is only defined by platforms that need it. Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Diffstat (limited to 'lib/jit_loongarch-cpu.c')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月19日 21:59:02 +0000

AltStyle によって変換されたページ (->オリジナル) /