Compare commits

...

3 commits

Author SHA1 Message Date
3c0e5f5226 fix compile error 2024-08-09 04:21:21 -05:00
8d72008ca0 add .cache to .gitignore 2024-08-09 04:21:09 -05:00
ee53cc032b add compile_commands 2024-08-09 03:52:49 -05:00
3 changed files with 11 additions and 2 deletions

3
.gitignore vendored
View file

@ -23,4 +23,5 @@ CMakeFiles/
doc/html
make.deps
src/emacs/dependencies
compile_commands.json
compile_commands.json
.cache

View file

@ -4,6 +4,14 @@ set(LEAN_VERSION_MAJOR 0)
set(LEAN_VERSION_MINOR 2)
set(LEAN_VERSION_PATCH 0)
# Generate the `compile_commands.json` file.
set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE INTERNAL "")
if(CMAKE_EXPORT_COMPILE_COMMANDS)
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES
${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
endif()
if (NOT CMAKE_BUILD_TYPE)
message(STATUS "No build type selected, default to Release")
set(CMAKE_BUILD_TYPE "Release")

View file

@ -123,7 +123,7 @@ namespace lean {
unsigned size() const { return static_cast<unsigned>(m_rev.size()); }
unsigned * values() const { return m_permutation; }
const unsigned * values() const { return m_permutation.data(); }
}; // end of the permutation class
#ifdef LEAN_DEBUG