Skip to content

Commit

Permalink
test(ci): windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziqi-Yang committed Jul 31, 2024
1 parent 0e6a9ac commit 9ee523d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,11 @@ target_link_libraries(llvmpym_ext PRIVATE ${llvm_libs} fmt::fmt)
# although we are going build a full llvm python binding :-
# TODO for MacOS immitate llvmlite only expose certain symbols. Can it work?
# https://github.com/numba/llvmlite/blob/78ebf9bf188379b2642112aff388480384306c6b/ffi/CMakeLists.txt#L76C53-L76C61
set_property(TARGET llvmpym_ext APPEND_STRING PROPERTY LINK_FLAGS "-flto")
if(NOT APPLE)
set_property(TARGET llvmpym_ext APPEND_STRING PROPERTY LINK_FLAGS " -Wl,--exclude-libs,ALL")
if(UNIX)
set_property(TARGET llvmpym_ext APPEND_STRING PROPERTY LINK_FLAGS "-flto")
if(NOT APPLE)
set_property(TARGET llvmpym_ext APPEND_STRING PROPERTY LINK_FLAGS " -Wl,--exclude-libs,ALL")
endif()
endif()

# Stub Files
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ manylinux-x86_64-image = "manylinux_2_28"
manylinux-aarch64-image = "manylinux_2_28"

[tool.cibuildwheel.windows]
environment = { SKBUILD_CMAKE_ARGS="-DLLVM_DIR=D:/a/llvmpym/llvmpym/llvm-build/lib/cmake/llvm;-DZLIB_ROOT=$VCPKG_INSTALLATION_ROOT/installed/x64-windows/share/zlib" }
environment = { SKBUILD_CMAKE_ARGS="-DLLVM_DIR=D:/a/llvmpym/llvmpym/llvm-build/lib/cmake/llvm" }

[tool.cibuildwheel.macos.environment]
# Needed for full C++17 support
Expand Down
5 changes: 1 addition & 4 deletions scripts/action/install_llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ elif [[ "$sys" == "Msys" ]]; then
root_llvm_dir_name="clang+llvm-18.1.8-x86_64-pc-windows-msvc"

# install libraries
vcpkg install zlib
# vcpkg install zlib

# MacOS
elif [[ "$sys" == "Darwin" ]]; then # Mac (only for 14 or later, i.e. apple silicon)
Expand All @@ -42,6 +42,3 @@ curl -L -o ./llvm-build.tar.xz "$url"
tar -xf ./llvm-build.tar.xz
mv "$root_llvm_dir_name" ./llvm-build

ls
echo ------------
ls ./llvm-build

0 comments on commit 9ee523d

Please sign in to comment.