Skip to content

Commit

Permalink
Back out a linker change from #133.
Browse files Browse the repository at this point in the history
The problem was that the newer system lld doesn't like some symbols
in ancient libGLs used on Linux platforms.
  • Loading branch information
renpytom committed Oct 3, 2024
1 parent b58b864 commit d8e3a31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion renpybuild/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ def llvm(c, bin="", prefix="", suffix="-15", clang_args="", use_ld=True):
ld = c.expand("{{llvm_bin}}lld{{llvm_suffix}}")

if use_ld:
clang_args = "-fuse-ld=lld -Wno-unused-command-line-argument " + clang_args
if c.platform == "linux":
# Needed until we upgrade the linux sysroot to a version compatible with newer clangs.
clang_args = "-fuse-ld=" + ld + " -Wno-unused-command-line-argument " + clang_args
else:
clang_args = "-fuse-ld=lld -Wno-unused-command-line-argument " + clang_args

if c.platform == "ios":
c.var("cxx_clang_args", "-stdlib=libc++ -I{{cross}}/sdk/usr/include/c++")
Expand Down

0 comments on commit d8e3a31

Please sign in to comment.