[clang] [clang][LoongArch] Add OHOS target (PR #127555)

Lu Weining via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 18 17:24:47 PST 2025


================
@@ -368,7 +370,12 @@ void OHOS::addExtraOpts(llvm::opt::ArgStringList &CmdArgs) const {
   CmdArgs.push_back("-z");
   CmdArgs.push_back("relro");
   CmdArgs.push_back("-z");
-  CmdArgs.push_back("max-page-size=4096");
+  // LoongArch needs page size 16K
----------------
SixWeining wrote:

The comment is unnecessary as the code explains itself.

https://github.com/llvm/llvm-project/pull/127555


More information about the cfe-commits mailing list