MCPcopy Create free account
hub / github.com/MegEngine/MegCC / detect_build_env

Method detect_build_env

runtime/scripts/runtime_build.py:49–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 }
48
49 def detect_build_env(self):
50 self.BUILD_ENV = platform.system()
51 assert (self.BUILD_ENV in self.SUPPORT_BUILD_ENV
52 ), "now only support build env at: {}".format(
53 self.SUPPORT_BUILD_ENV)
54 if self.BUILD_ENV == "Darwin":
55 READLINK = "greadlink"
56 elif self.BUILD_ENV == "Windows":
57 self.NINJA_BASE = "Ninja"
58 logging.debug("build runtime at host env: {}".format(self.BUILD_ENV))
59
60 def build(self):
61 self.detect_build_env()

Callers 1

buildMethod · 0.95

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected