You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Fixed Mold-search in older systems
This commit is contained in:
@@ -123,10 +123,16 @@ def configure(env: "SConsEnvironment"):
|
|||||||
found_wrapper = True
|
found_wrapper = True
|
||||||
break
|
break
|
||||||
if not found_wrapper:
|
if not found_wrapper:
|
||||||
print_error(
|
for path in os.environ["PATH"].split(os.pathsep):
|
||||||
"Couldn't locate mold installation path. Make sure it's installed in /usr or /usr/local."
|
if os.path.isfile(path + "/ld.mold"):
|
||||||
)
|
env.Append(LINKFLAGS=["-B" + path])
|
||||||
sys.exit(255)
|
found_wrapper = True
|
||||||
|
break
|
||||||
|
if not found_wrapper:
|
||||||
|
print_error(
|
||||||
|
"Couldn't locate mold installation path. Make sure it's installed in /usr, /usr/local or in PATH environment variable."
|
||||||
|
)
|
||||||
|
sys.exit(255)
|
||||||
else:
|
else:
|
||||||
env.Append(LINKFLAGS=["-fuse-ld=mold"])
|
env.Append(LINKFLAGS=["-fuse-ld=mold"])
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user