[clang] [PS4/PS5][Driver] Allow -static in PlayStation drivers (PR #102020)
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 5 10:30:28 PDT 2024
================
@@ -141,6 +141,9 @@ void tools::PS4cpu::Linker::ConstructJob(Compilation &C, const JobAction &JA,
if (Args.hasArg(options::OPT_pie))
CmdArgs.push_back("-pie");
+
+ if (Args.hasArg(options::OPT_static))
+ CmdArgs.push_back("--static");
----------------
MaskRay wrote:
The linker option is almost always spelled as `-static`.
Gnu.cpp:437 (ae623d16d50c9f12de7ae7ac1aa11c9d6857e081) demonstrates how these options work on Linux
https://github.com/llvm/llvm-project/pull/102020
More information about the cfe-commits
mailing list