[libc] Add missing -latomic for rv32 (#99337)
On rv32, libatomic is needed to build libc when mpfr and gmp are enabled.
This commit is contained in:
parent
ac1d5facf6
commit
e5ccc7136d
@ -13,6 +13,6 @@ else()
|
||||
SOURCES
|
||||
${LIBC_SOURCE_DIR}/utils/MPFRWrapper/check_mpfr.cpp
|
||||
LINK_LIBRARIES
|
||||
-lmpfr -lgmp
|
||||
-lmpfr -lgmp -latomic
|
||||
)
|
||||
endif()
|
||||
|
@ -24,7 +24,7 @@ function(add_fp_unittest name)
|
||||
message(FATAL_ERROR "Hermetic math test cannot require MPFR.")
|
||||
endif()
|
||||
set(test_type UNIT_TEST_ONLY)
|
||||
list(APPEND MATH_UNITTEST_LINK_LIBRARIES libcMPFRWrapper -lmpfr -lgmp)
|
||||
list(APPEND MATH_UNITTEST_LINK_LIBRARIES libcMPFRWrapper -lmpfr -lgmp -latomic)
|
||||
endif()
|
||||
list(APPEND MATH_UNITTEST_LINK_LIBRARIES LibcFPTestHelpers)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user