]> git.kaiwu.me - quickjs.git/commitdiff
added note about atomic operations
authorFabrice Bellard <fabrice@bellard.org>
Tue, 2 Jan 2024 15:10:24 +0000 (16:10 +0100)
committerFabrice Bellard <fabrice@bellard.org>
Tue, 2 Jan 2024 15:10:24 +0000 (16:10 +0100)
doc/quickjs.texi

index 996836b31c70fe50680ccddbd22331bdb97c3a2f..055825acdce22caa588b48398c0ac270f263a7b0 100644 (file)
@@ -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