diff --git a/CMakeLists.txt b/CMakeLists.txt index f97cbc9..0f2c488 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 3.20.0...3.29.6) # default for both c and c++ (c is needed for MacOS build) project(${SKBUILD_PROJECT_NAME}) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + # required for linking fmt library during cibuildwheels build on manylinux_2_28 set(CMAKE_POSITION_INDEPENDENT_CODE ON) if(UNIX) diff --git a/src/llvm/Analysis.cpp b/src/llvm/Analysis.cpp new file mode 100644 index 0000000..b11e9dc --- /dev/null +++ b/src/llvm/Analysis.cpp @@ -0,0 +1,10 @@ +#include "Analysis.h" + +#include + +namespace nb = nanobind; +using namespace nb::literals; + + +void populateAnalysis(nb::module_ &m); + diff --git a/src/llvm/Analysis.h b/src/llvm/Analysis.h new file mode 100644 index 0000000..ed6e5c2 --- /dev/null +++ b/src/llvm/Analysis.h @@ -0,0 +1,9 @@ +#ifndef LLVMPYM_ANALYSIS_H +#define LLVMPYM_ANALYSIS_H + +#include + +void populateAnalysis(nanobind::module_ &m); + + +#endif