Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Pass one of backward-cpp based backtraces on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Strum355 committed Nov 19, 2020
1 parent 0f8305e commit f63ca8d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
build
bin
.clangd
compile_commands.json
dump.lsif
cmake-build-debug
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "src/indexer/backward-cpp"]
path = src/indexer/backward-cpp
url = [email protected]:bombela/backward-cpp.git
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ cmake_minimum_required(VERSION 3.16)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_BUILD_TYPE RelWithDebInfo)
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -DNDEBUG -g")

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin)
Expand Down
9 changes: 7 additions & 2 deletions src/indexer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../)

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backward-cpp)

add_executable(lsif-clang
IndexerMain.cpp
)
IndexerMain.cpp
${BACKWARD_ENABLE}
)

add_backward(lsif-clang)

install(TARGETS lsif-clang)

Expand Down
1 change: 1 addition & 0 deletions src/indexer/backward-cpp
Submodule backward-cpp added at 27a890

0 comments on commit f63ca8d

Please sign in to comment.