Skip to content

Commit

Permalink
Work on wheels mac
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Jan 19, 2024
1 parent 13c3fdc commit 13746c4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,5 @@ cmake-build-*/
.idea/
.vscode

/venv*/
/venv*/
wheelhouse/
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ include(litgen_cmake/litgen_setup_module.cmake)

set(CMAKE_CXX_STANDARD 20)

set(SRCML_CALLER_PYTHON ON CACHE BOOL "Build python bindings for srcml_caller" FORCE)

####################################################
# Add pybind11
####################################################
Expand Down
2 changes: 1 addition & 1 deletion external/srcML
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ profile = "black"
[tool.cibuildwheel]
build-verbosity = 1
# Target python versions:
build = ["cp311-*", "cp312-*"]
#build = ["cp311-*", "cp312-*"]
build = ["cp312-*"]
# Tests
test-requires = "pytest"
test-command = "pytest {project}/tests"
Expand All @@ -31,6 +32,7 @@ test-command = "pytest {project}/tests"
# identify whether this is a M1 or intel
before-build = "uname -a"
# archs = ["x86_64"]
# archs = ["arm64"]

[tool.cibuildwheel.linux]
skip = ["*i686", "*-musllinux*"]
Expand Down
12 changes: 6 additions & 6 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
add_subdirectory(libsrcml_caller)

if (TRUE)
# Note srcml_cmd_line is a simple command line to test the library
# It is build on apple only, but could be build on other platforms
add_executable(srcml_cmd_line srcml_cmd_line.cpp)
target_link_libraries(srcml_cmd_line PRIVATE libsrcml_caller)
endif()
#if (TRUE)
# # Note srcml_cmd_line is a simple command line to test the library
# # It is build on apple only, but could be build on other platforms
# add_executable(srcml_cmd_line srcml_cmd_line.cpp)
# target_link_libraries(srcml_cmd_line PRIVATE libsrcml_caller)
#endif()

0 comments on commit 13746c4

Please sign in to comment.