[PATCH] D92677: Provide default location of sysroot for Baremetal toolchain.

Petr Hosek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 6 22:29:18 PDT 2021


phosek added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/BareMetal.cpp:102
+  SmallString<128> SysRootDir;
+  llvm::sys::path::append(SysRootDir, getDriver().Dir, "../lib/clang-runtimes",
+                          getDriver().getTargetTriple());
----------------
I apologize for raising a comment on an older change but I ran into this recently, GCC uses `../sys-root` as the default sysroot location and I think it'd be useful for Clang to be consistent.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92677/new/

https://reviews.llvm.org/D92677



More information about the cfe-commits mailing list