mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibJS: Link with libatomic on i*86
Basically, this would be needed on any platform where the compiler cannot tell at compile time whether or not some atomic size is lock-free.
This commit is contained in:
parent
9c6c2284d9
commit
21b946791e
Notes:
sideshowbarker
2024-07-17 02:55:44 +09:00
Author: https://github.com/bugaevc Commit: https://github.com/SerenityOS/serenity/commit/21b946791e Pull-request: https://github.com/SerenityOS/serenity/pull/21780
1 changed files with 6 additions and 0 deletions
|
@ -271,4 +271,10 @@ target_link_libraries(LibJS PRIVATE LibCore LibCrypto LibFileSystem LibRegex Lib
|
|||
if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64")
|
||||
target_link_libraries(LibJS PRIVATE LibX86)
|
||||
endif()
|
||||
|
||||
# TODO: This is probably also needed on RISC-V.
|
||||
if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i.86.*")
|
||||
target_link_libraries(LibJS PRIVATE atomic)
|
||||
endif()
|
||||
|
||||
target_compile_options(LibJS PRIVATE -fno-omit-frame-pointer)
|
||||
|
|
Loading…
Reference in a new issue