Skip to content

Commit

Permalink
Add HAVE_LFORTRAN_LLVM into config.h
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Jul 7, 2020
1 parent 37b3273 commit 7e79422
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ if (WITH_LLVM)
$<$<COMPILE_LANGUAGE:CXX>:${LFORTRAN_CXX_NO_RTTI_FLAG}>)
set_property(TARGET p::llvm PROPERTY INTERFACE_LINK_LIBRARIES
${llvm_libs})
set(HAVE_LFORTRAN_LLVM yes)
endif()

# JSON
Expand Down
3 changes: 3 additions & 0 deletions src/lfortran/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@
/* LFortran version */
#cmakedefine LFORTRAN_VERSION "@LFORTRAN_VERSION@"

/* Define if LLVM is enabled */
#cmakedefine HAVE_LFORTRAN_LLVM

#endif // LFORTRAN_CONFIG_H

0 comments on commit 7e79422

Please sign in to comment.