# MSYS targets support yosys-smtbmc, but require a launcher script
ifeq($(CONFIG),$(filter$(CONFIG),msys2msys2-64))
TARGETS+=yosys-smtbmc.exeyosys-smtbmc-script.py
# Needed to find the Python interpreter for yosys-smtbmc scripts.
# Override if necessary, it is only used for msys2 targets.
PYTHON:=$(shellcygpath-w-m$(PREFIX)/bin/python3)
yosys-smtbmc-script.py:backends/smt2/smtbmc.py
$(P)sed-e's|##yosys-sys-path##|sys.path += [os.path.dirname(os.path.realpath(__file__)) + p for p in ["/share/python3", "/../share/yosys/python3"]]|;'\
$(P)sed's|##yosys-sys-path##|sys.path += [os.path.dirname(os.path.realpath(__file__)) + p for p in ["/share/python3", "/../share/yosys/python3"]]|;'<$<>$@.new