aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/analysis/config
diff options
context:
space:
mode:
authorGravatar Jasper Siepkes <siepkes@serviceplanet.nl>2018-04-09 02:49:33 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-04-09 02:50:49 -0700
commitf3de7d5ff2834ad601975929aa189cfe268a6fb9 (patch)
treeed951b24bce022d9730c7326502f27889f113b2f /src/main/java/com/google/devtools/build/lib/analysis/config
parentb6069dce1121bb81a667bd9c636681862209e48c (diff)
Made 'file_posix.cc' POSIX compatible
The `d_type` field is not part of the POSIX specification. Added a compile time check to see if we can use it. When not present fallback to a (slightly more expensive) call to 'stat'. The reason why I need this is because I'm trying to port Bazel to a POSIX compliant platform. Even though my porting effort might fail miserably ;-) I think having a POSIX implementation which is POSIX compliant would be of benefit to the Bazel project. Besides the POSIX spec I've based the implementation on information I found here: * https://stackoverflow.com/questions/2197918/cross-platform-way-of-testing-whether-a-file-is-a-directory * https://stackoverflow.com/questions/23958040/checking-if-a-dir-entry-returned-by-readdir-is-a-directory-link-or-file#answer-29094555 * https://stackoverflow.com/questions/39429803/how-to-list-first-level-directories-only-in-c/39430337#39430337 Closes #4967. PiperOrigin-RevId: 192102522
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis/config')
0 files changed, 0 insertions, 0 deletions