From ee33187e213b7f33e0d44c8dc97a04fa861dabef Mon Sep 17 00:00:00 2001 From: mavenlin Date: Tue, 5 Dec 2023 00:01:13 +0800 Subject: [PATCH] export all symbols --- maple2jax/libxc/build.jinja | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/maple2jax/libxc/build.jinja b/maple2jax/libxc/build.jinja index 05e3b93..9c66944 100644 --- a/maple2jax/libxc/build.jinja +++ b/maple2jax/libxc/build.jinja @@ -59,6 +59,10 @@ genrule( cc_library( name = "{{ src }}c.obj", srcs = ["src_cc/{{ src }}c"], + features = select({ + "@platforms//os:windows": ["windows_export_all_symbols"], + "//conditions:default": [], + }), deps = [ ":xc_inc", ":register", @@ -84,6 +88,10 @@ pybind_extension( "@platforms//os:windows": [], "//conditions:default": ["-std=c++14"], }), + features = select({ + "@platforms//os:windows": ["windows_export_all_symbols"], + "//conditions:default": [], + }), deps = [ ":xc_inc", "@visit_struct",