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 #endif -#define XXH_INLINE_ALL 1 -#include "../third-party/xxhash/xxhash.h" +#include #ifdef NDEBUG # define unreachable() __builtin_unreachable()