Skip to content

Commit

Permalink
compile fix
Browse files Browse the repository at this point in the history
and switching to old clang-format
  • Loading branch information
leissa committed Nov 30, 2023
1 parent db6bf8f commit 0e2d002
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
8 changes: 2 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ repos:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.6
hooks:
- id: clang-format
#- id: clang-tidy
#- id: cppcheck
#- id: cpplint
#- id: include-what-you-use
6 changes: 5 additions & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
add_executable(hello hello.cpp)
target_link_libraries(hello libthorin)
target_link_libraries(hello
PRIVATE
libthorin
thorin_interface_mem
)
set_target_properties(hello PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/examples")
add_dependencies(hello thorin_compile thorin_core)
install(TARGETS hello EXPORT thorin-targets)
4 changes: 3 additions & 1 deletion examples/hello.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#include <fstream>

#include <thorin/driver.h>

#include <thorin/fe/parser.h>
#include <thorin/pass/optimize.h>
#include <thorin/plug/mem/mem.h>
#include <thorin/util/sys.h>

#include <thorin/plug/mem/mem.h>

using namespace thorin;
using namespace thorin::plug;

Expand Down

0 comments on commit 0e2d002

Please sign in to comment.