Use lld for Clang.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
9a91d356e0
commit
1686434440
|
@ -17,6 +17,10 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
|||
add_compile_options(-fconcepts)
|
||||
endif ()
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
add_link_options(-fuse-ld=lld)
|
||||
endif ()
|
||||
|
||||
if (WINDOWS)
|
||||
SET(CMAKE_SYSTEM_NAME Windows)
|
||||
ADD_DEFINITIONS(-D WINDOWS=1)
|
||||
|
@ -34,8 +38,19 @@ message(STATUS "Using:
|
|||
\t CXX ABI ${CMAKE_CXX_COMPILER_ABI}
|
||||
\t C++ Version ${CMAKE_CXX_STANDARD}")
|
||||
|
||||
|
||||
if (LEVEL_SIZE STREQUAL "8")
|
||||
add_definitions(-DLEVEL_U8)
|
||||
message(STATUS "Using level size of 8")
|
||||
elseif (LEVEL_SIZE STREQUAL "16")
|
||||
add_definitions(-DLEVEL_U16)
|
||||
message(STATUS "Using level size of 16")
|
||||
elseif (LEVEL_SIZE STREQUAL "32")
|
||||
add_definitions(-DLEVEL_U32)
|
||||
message(STATUS "Using level size of 32")
|
||||
elseif (LEVEL_SIZE STREQUAL "64")
|
||||
add_definitions(-DLEVEL_U64)
|
||||
message(STATUS "Using level size of 64")
|
||||
else ()
|
||||
message(FATAL_ERROR, "Invalid level size was given.")
|
||||
endif ()
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace PkmnLib::Library {
|
|||
ArbUt::List<ArbUt::BorrowedPtr<const MoveData>> _eggMoves;
|
||||
|
||||
public:
|
||||
explicit LearnableMoves(size_t levelAttackCapacity) : LearnableAttacks(levelAttackCapacity) {}
|
||||
explicit LearnableMoves(level_int_t levelAttackCapacity) : LearnableAttacks(levelAttackCapacity) {}
|
||||
|
||||
void AddEggMove(const ArbUt::BorrowedPtr<const MoveData>& move) noexcept {
|
||||
if (!_eggMoves.Contains(move))
|
||||
|
|
Loading…
Reference in New Issue