[PATCH] D121445: [Clang][CSKY] Add the CSKY target and compiler driver
David Spickett via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 11 02:58:02 PST 2022
DavidSpickett added inline comments.
================
Comment at: clang/lib/Basic/Targets/CSKY.cpp:43
+ Builder.defineMacro("__CSKYABI__", ABI == "abiv2" ? "2" : "1");
+ Builder.defineMacro("__cskyabi__", ABI == "abiv2" ? "2" : "1");
+
----------------
Any need to handle when ABI is not avbiv2 or abiv1 or will it always be one of the two?
================
Comment at: clang/lib/Driver/ToolChains/Linux.cpp:373
+
+ std::string Path = (GCCInstallation.getInstallPath() + "/../../../../" +
+ GCCInstallation.getTriple().str() + "/libc").str();
----------------
Can you comment what all the `..` are going to/from. I assume from some deep folder back up, down into the sysroot but an example in a comment would be good to document it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121445/new/
https://reviews.llvm.org/D121445
More information about the cfe-commits
mailing list