Skip to content

Commit

Permalink
test(ci): specify CXX version for MacOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziqi-Yang committed Aug 4, 2024
1 parent f36d4a8 commit ef6bbf4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 10 additions & 0 deletions src/llvm/Analysis.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include "Analysis.h"

#include <nanobind/nanobind.h>

namespace nb = nanobind;
using namespace nb::literals;


void populateAnalysis(nb::module_ &m);

9 changes: 9 additions & 0 deletions src/llvm/Analysis.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef LLVMPYM_ANALYSIS_H
#define LLVMPYM_ANALYSIS_H

#include <nanobind/nanobind.h>

void populateAnalysis(nanobind::module_ &m);


#endif

0 comments on commit ef6bbf4

Please sign in to comment.