From 4810c8f14ffc69c56ac488f8880929f435bf7cc6 Mon Sep 17 00:00:00 2001 From: mavenlin Date: Tue, 5 Dec 2023 00:19:21 +0800 Subject: [PATCH] directly add features --- maple2jax/libxc/build.jinja | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/maple2jax/libxc/build.jinja b/maple2jax/libxc/build.jinja index 9c66944..b3af7d2 100644 --- a/maple2jax/libxc/build.jinja +++ b/maple2jax/libxc/build.jinja @@ -59,10 +59,7 @@ genrule( cc_library( name = "{{ src }}c.obj", srcs = ["src_cc/{{ src }}c"], - features = select({ - "@platforms//os:windows": ["windows_export_all_symbols"], - "//conditions:default": [], - }), + features = ["windows_export_all_symbols"], deps = [ ":xc_inc", ":register", @@ -88,10 +85,7 @@ pybind_extension( "@platforms//os:windows": [], "//conditions:default": ["-std=c++14"], }), - features = select({ - "@platforms//os:windows": ["windows_export_all_symbols"], - "//conditions:default": [], - }), + features = ["windows_export_all_symbols"], deps = [ ":xc_inc", "@visit_struct",