diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 851b5c5..444b08a 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -22,6 +22,7 @@ jobs: run: | pip install -r requirements.txt bazel build --config=windows_x86_64 --remote_cache=http://${{ secrets.BAZEL_CACHE }}:8080 @maple2jax//:jax_xc_wheel + cat bazel-out/x64_windows-opt-exec-2B5CBBC6/bin/external/maple2jax/jax_xc/libxc.so-2.params shell: pwsh - name: Upload artifact uses: actions/upload-artifact@main diff --git a/maple2jax/libxc/build.jinja b/maple2jax/libxc/build.jinja index b3f8712..05e3b93 100644 --- a/maple2jax/libxc/build.jinja +++ b/maple2jax/libxc/build.jinja @@ -78,22 +78,15 @@ cc_library( {% endfor %} -cc_binary( - name = "libxc.so", +pybind_extension( + name = "libxc", copts = select({ "@platforms//os:windows": [], - "//conditions:default": ["-std=c++14", "-fexceptions"], + "//conditions:default": ["-std=c++14"], }), - features = [ - "-use_header_modules", # Required for pybind11. - "-parse_headers", - ], - linkshared = 1, deps = [ ":xc_inc", "@visit_struct", - "@pybind11", - "@local_config_python//:python_headers", ":register", {% for basename in c_file_basenames %} ":{{ basename }}c.obj",