From 63091225165128c520d20bf2b8ea5aaa86608ae1 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 17 Dec 2023 13:18:34 +0100 Subject: [PATCH] nix build-all: don't strip non-release wrapper builds --- nix/build-all.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nix/build-all.py b/nix/build-all.py index 815c36bc14..0c5523fff8 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -900,8 +900,9 @@ if "IfcOpenShell-Python" in targets: module_dir = os.path.dirname(run([python_executable, "-c", "import inspect, ifcopenshell; print(inspect.getfile(ifcopenshell))"])) if platform.system() != "Darwin": - # TODO: This symbol name depends on the Python version? - run([strip, "-s", "-K", "PyInit__ifcopenshell_wrapper", "_ifcopenshell_wrapper.so"], cwd=module_dir) + if BUILD_CFG == "Release": + # TODO: This symbol name depends on the Python version? + run([strip, "-s", "-K", "PyInit__ifcopenshell_wrapper", "_ifcopenshell_wrapper.so"], cwd=module_dir) return module_dir