Set LIBPATH

This commit is contained in:
Kai Luo 2023-03-28 10:59:45 +08:00
parent 35726e909d
commit b56fcb173b

View File

@ -741,6 +741,9 @@ class RustBuild(object):
env["LIBRARY_PATH"] = os.path.join(self.bin_root(), "lib") + \ env["LIBRARY_PATH"] = os.path.join(self.bin_root(), "lib") + \
(os.pathsep + env["LIBRARY_PATH"]) \ (os.pathsep + env["LIBRARY_PATH"]) \
if "LIBRARY_PATH" in env else "" if "LIBRARY_PATH" in env else ""
env["LIBPATH"] = os.path.join(self.bin_root(), "lib") + \
(os.pathsep + env["LIBPATH"]) \
if "LIBPATH" in env else ""
# Export Stage0 snapshot compiler related env variables # Export Stage0 snapshot compiler related env variables
build_section = "target.{}".format(self.build) build_section = "target.{}".format(self.build)