Skip to content

Commit

Permalink
fix concepts (try 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jadebenn committed Jan 20, 2024
1 parent 81cb9fe commit 247aabc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ set(RECASTNAVIGATION_EXAMPLES OFF CACHE BOOL "" FORCE)
# Disabled no-register
# Disabled unknown pragmas because Linux doesn't understand Windows pragmas.
if(UNIX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -Wuninitialized -fconcepts -fPIC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -Wuninitialized -fPIC")
add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=0 _GLIBCXX_USE_CXX17_ABI=0)

if(NOT APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc -lstdc++fs")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc -lstdc++fs -fconcepts")
endif()

if(${DYNAMIC} AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
Expand Down
2 changes: 1 addition & 1 deletion tests/dGameTests/dEntitiesTests/ArchetypeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ TEST_F(ArchetypeTest, ReadFromArchetypeTest) {
}

// Benchmarking
constexpr uint32_t nLoops = 1E6;
constexpr uint32_t nLoops = 100; //1E6;
auto begin = std::chrono::high_resolution_clock::now();
for (auto i = 0; i < nLoops; ++i) {
for (const auto& destComp : destroyableContainer) {
Expand Down

0 comments on commit 247aabc

Please sign in to comment.