[clang] [PS4/PS5][Driver] Allow -static in PlayStation drivers (PR #102020)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 5 10:26:40 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 6f8ef5ad2f35321257adbe353f86027bf5209023 aa97906cdf1ac08e0b5d607914c28dcb2bbc2545 --extensions c,cpp -- clang/lib/Driver/ToolChains/PS4CPU.cpp clang/test/Driver/ps4-linker.c clang/test/Driver/ps4-pic.c clang/test/Driver/ps5-linker.c clang/test/Driver/ps5-pic.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/ToolChains/PS4CPU.cpp b/clang/lib/Driver/ToolChains/PS4CPU.cpp
index 3da9a280fd..e3e4c51e16 100644
--- a/clang/lib/Driver/ToolChains/PS4CPU.cpp
+++ b/clang/lib/Driver/ToolChains/PS4CPU.cpp
@@ -141,7 +141,6 @@ 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");
if (Args.hasArg(options::OPT_rdynamic))
``````````
</details>
https://github.com/llvm/llvm-project/pull/102020
More information about the cfe-commits
mailing list