[PATCH] D53125: Detect Clear Linux and apply Clear's default linker options

Michał Górny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 11 01:28:01 PDT 2018


mgorny added inline comments.


================
Comment at: lib/Driver/Distro.cpp:139
 
+  File = VFS.getBufferForFile("/usr/lib/os-release");
+  if (File) {
----------------
Technically speaking, the spec says you are supposed to read `/etc/os-release` first and fall back to `/usr/lib/os-release` only if the former does not exist.


https://reviews.llvm.org/D53125





More information about the cfe-commits mailing list