mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-25 19:36:21 +00:00
Migrate build system to CMake
See #5895 for details. This commit does not include CI or documentation changes.
This commit is contained in:
parent
7bcda9d304
commit
5f1d2297aa
207 changed files with 5257 additions and 2294 deletions
19
pyosys/modinit.py
Normal file
19
pyosys/modinit.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
sys.setdlopenflags(os.RTLD_NOW | os.RTLD_GLOBAL)
|
||||
|
||||
__dir__ = os.path.abspath(os.path.dirname(__file__))
|
||||
sys._pyosys_dir = os.path.abspath(__dir__)
|
||||
|
||||
bin_ext = ".exe" if os.name == "nt" else ""
|
||||
|
||||
_share_candidate = os.path.join(__dir__, "share")
|
||||
if os.path.isdir(_share_candidate):
|
||||
sys._pyosys_share_dirname = _share_candidate + os.path.sep
|
||||
|
||||
_abc_candidate = os.path.join(__dir__, f"yosys-abc{bin_ext}")
|
||||
if os.path.isfile(_abc_candidate):
|
||||
sys._pyosys_abc = _abc_candidate
|
||||
|
||||
__all__ = ["libyosys"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue