commit 4092fc827a686210855ab31ca686adbbbfe395f9
parent 0a33a715b9a918c42d6b7d2c2268131dd3da3626
Author: Fabrice Bellard <fabrice@bellard.org>
Date: Tue, 2 Jan 2024 16:10:24 +0100
added note about atomic operations
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/quickjs/doc/quickjs.texi b/quickjs/doc/quickjs.texi
@@ -69,6 +69,11 @@ options then run @code{make}.
You can type @code{make install} as root if you wish to install the binaries and support files to
@code{/usr/local} (this is not necessary to use QuickJS).
+Note: On some OSes atomic operations are not available or need a
+specific library. If you get related errors, you should either add
+@code{-latomics} in the Makefile @code{LIBS} variable or disable
+@code{CONFIG_ATOMICS} in @file{quickjs.c}.
+
@section Quick start
@code{qjs} is the command line interpreter (Read-Eval-Print Loop). You can pass