[llvm] [M68k] implement -mxgot (PR #119803)
John Paul Adrian Glaubitz via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 4 12:05:26 PDT 2025
glaubitz wrote:
I have applied the patch to Rust's LLVM compiler and then patched the `bootstrap.py` script as follows:
```diff
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index 40e08361a0f..c453a22ff0b 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -1117,6 +1117,9 @@ class RustBuild(object):
if deny_warnings:
env["RUSTFLAGS"] += " -Dwarnings"
+ if self.build_triple().startswith('m68k'):
+ env["RUSTFLAGS"] += " -Cllvm-args=-mxgot"
+
# Add RUSTFLAGS_BOOTSTRAP to RUSTFLAGS for bootstrap compilation.
# Note that RUSTFLAGS_BOOTSTRAP should always be added to the end of
# RUSTFLAGS to be actually effective (e.g., if we have `-Dwarnings` in
```
Unfortunately, that doesn't work.
https://github.com/llvm/llvm-project/pull/119803
More information about the llvm-commits
mailing list