Skip to content

Commit

Permalink
[ESI][runtime] Run command in OS environment
Browse files Browse the repository at this point in the history
Using the simulation environment was causing some applications to use
the shared objects distributed with the wheel. That's usually wrong
since the wheel shared objects are compiled with the "old" string C++
library for compatibility reasons. C++ applications which are compiled
against the ESI runtime don't use that.
  • Loading branch information
teqdruid committed May 21, 2024
1 parent 2ba1992 commit 49f663c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dialect/ESI/runtime/cosim/esi-cosim.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def run(self, inner_command: str) -> int:
time.sleep(0.05)

# Run the inner command, passing the connection info via environment vars.
testEnv = Simulator.get_env()
testEnv = os.environ.copy()
testEnv["ESI_COSIM_PORT"] = str(port)
testEnv["ESI_COSIM_HOST"] = "localhost"
return subprocess.run(inner_command, cwd=os.getcwd(),
Expand Down

0 comments on commit 49f663c

Please sign in to comment.