mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-01 14:52:14 +01:00
28 lines
765 B
Diff
28 lines
765 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index ceda7b2..5703000 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -57,7 +57,7 @@ endif()
|
|
|
|
add_executable(mold)
|
|
target_compile_features(mold PRIVATE cxx_std_20)
|
|
-target_link_libraries(mold PRIVATE ${CMAKE_DL_LIBS})
|
|
+target_link_libraries(mold PRIVATE ${CMAKE_DL_LIBS} xxhash)
|
|
|
|
if(NOT "${CMAKE_CXX_COMPILER_FRONTEND_VARIANT}" STREQUAL "MSVC")
|
|
target_compile_options(mold PRIVATE
|
|
diff --git a/common/common.h b/common/common.h
|
|
index 7a4a69e..dc0719b 100644
|
|
--- a/common/common.h
|
|
+++ b/common/common.h
|
|
@@ -31,8 +31,7 @@
|
|
# include <unistd.h>
|
|
#endif
|
|
|
|
-#define XXH_INLINE_ALL 1
|
|
-#include "../third-party/xxhash/xxhash.h"
|
|
+#include <xxhash.h>
|
|
|
|
#ifdef NDEBUG
|
|
# define unreachable() __builtin_unreachable()
|