cmake: drop libatomic workaround for riscv

This commit is contained in:
Nick Cao 2023-12-16 16:27:08 -05:00
parent dbb7b67b56
commit 8b2757a191
No known key found for this signature in database

View File

@ -138,8 +138,6 @@ stdenv.mkDerivation (finalAttrs: {
"CFLAGS=-D_FILE_OFFSET_BITS=64"
"CXXFLAGS=-D_FILE_OFFSET_BITS=64"
]
# Workaround missing atomic ops with gcc <13
++ lib.optional stdenv.hostPlatform.isRiscV "LDFLAGS=-latomic"
++ [
"--"
# We should set the proper `CMAKE_SYSTEM_NAME`.