From 0bd29ac0d21995adc692e4ec311c4c2bc348aad7 Mon Sep 17 00:00:00 2001 From: Rahul Bhagwat Date: Wed, 12 Aug 2026 16:33:37 +0530 Subject: [PATCH] macos needs dylibs --- chipfoundry_cli/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chipfoundry_cli/main.py b/chipfoundry_cli/main.py index cae9f97..54a909e 100644 --- a/chipfoundry_cli/main.py +++ b/chipfoundry_cli/main.py @@ -3604,13 +3604,17 @@ def maybe_abort_no_space(err, step_label): capture_output=True ) # Install from GitHub source (workaround: PyPI package is under efabless, we use chipfoundry repo) + env = os.environ.copy() + if sys.platform == 'darwin': + env['LDSHARED'] = 'clang++ -dynamiclib -undefined dynamic_lookup' subprocess.run( [ venv_python, '-m', 'pip', 'install', '--upgrade', '--no-cache-dir', 'git+https://github.com/chipfoundry/caravel-sim-infrastructure.git@main#subdirectory=cocotb' ], check=True, - capture_output=True + capture_output=True, + env=env ) console.print("[green]✓[/green] Cocotb environment set up successfully")